Skip to content

Commit

Permalink
fix deps and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paula-stacho committed Mar 7, 2025
1 parent dcdb710 commit a4b51c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/compass-schema-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@
"@mongodb-js/compass-editor": "^0.36.5",
"@mongodb-js/compass-field-store": "^9.25.5",
"@mongodb-js/compass-logging": "^1.6.5",
"@mongodb-js/compass-schema": "^6.51.5",
"@mongodb-js/compass-telemetry": "^1.4.5",
"@mongodb-js/compass-workspaces": "^0.31.5",
"bson": "^6.10.3",
"compass-preferences-model": "^2.33.5",
"hadron-app-registry": "^9.4.5",
"javascript-stringify": "^2.0.1",
"lodash": "^4.17.21",
"mongodb": "^6.14.1",
"mongodb-ns": "^2.4.2",
"mongodb-query-parser": "^4.3.0",
"react": "^17.0.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/compass-schema-validation/src/stores/store.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ const getMockedStore = async (analyzeSchema: any) => {
};

const schemaAccessor = {
getMongoDBJsonSchema: () => ({ required: ['prop1'] }),
getMongoDBJsonSchema: () => {
return new Promise((resolve) => {
setTimeout(() => resolve({ required: ['prop1'] }), 100); // waiting to give abort a chance
});
},
};

describe('Schema Validation Store', function () {
Expand Down

0 comments on commit a4b51c1

Please sign in to comment.