Skip to content

Commit

Permalink
Use fake-indexeddb in tests
Browse files Browse the repository at this point in the history
Fixes:
Error in watcher callback (Promise/async): "MissingAPIError: IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"
  • Loading branch information
davelopez committed Aug 7, 2024
1 parent 30a5985 commit bdaca8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"eslint-plugin-vue": "^9.17.0",
"eslint-plugin-vuejs-accessibility": "^2.2.0",
"expose-loader": "^4.1.0",
"fake-indexeddb": "^6.0.0",
"gulp": "^4.0.2",
"ignore-loader": "^0.1.2",
"imports-loader": "^4.0.1",
Expand Down
1 change: 1 addition & 0 deletions client/tests/jest/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "@testing-library/jest-dom";
import "@testing-library/jest-dom/jest-globals";
import "whatwg-fetch";
import "fake-indexeddb/auto";

import Vue from "vue";

Expand Down
5 changes: 5 additions & 0 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6206,6 +6206,11 @@ extglob@^2.0.4:
snapdragon "^0.8.1"
to-regex "^3.0.1"

fake-indexeddb@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/fake-indexeddb/-/fake-indexeddb-6.0.0.tgz#3173d5ad141436dace95f8de6e9ecdc3d9787d5d"
integrity sha512-YEboHE5VfopUclOck7LncgIqskAqnv4q0EWbYCaxKKjAvO93c+TJIaBuGy8CBFdbg9nKdpN3AuPRwVBJ4k7NrQ==

fancy-log@^1.3.2:
version "1.3.3"
resolved "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz"
Expand Down

0 comments on commit bdaca8f

Please sign in to comment.