Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jest_config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@ Object.defineProperty(window, 'scrollTo', { value: () => {}, writable: true });
resetJestGlobal();

setupSchema();

// Use of setImmediate by fake-indexeddb makes tests fail with inactive or premature transaction
// commit errors. This has something to do with microtasks, but since our code works correctly
// in the browser, this seems specific to node.js and how fake-indexeddb works.
global.setImmediate = global.setImmediate || ((fn, ...args) => global.setTimeout(fn, 0, ...args));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-kolibri": "^0.18.0",
"eslint-plugin-vue": "^9.32.0",
"fake-indexeddb": "^5.0.2",
"fake-indexeddb": "^6.2.5",
"file-loader": "^6.2.0",
"flush-promises": "^1.0.2",
"identity-obj-proxy": "^3.0.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

Loading