Skip to content

Commit

Permalink
add jsdom env for jest. update test files to use env
Browse files Browse the repository at this point in the history
  • Loading branch information
aolsenjazz committed Nov 26, 2022
1 parent cbe9066 commit 18470cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -79,6 +79,7 @@
"eslint": "^8.26.0",
"eslint-plugin-jest": "^27.1.3",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"string-replace-loader": "^3.0.1",
Expand Down
4 changes: 4 additions & 0 deletions tests/feeder-node.worker.test.js
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

// feeder-node.worker.js is currently mocked, so load the actual file using this alias
const WORKER_ALIAS = 'FEEDER_NODE_WORKER';

Expand Down
4 changes: 4 additions & 0 deletions tests/index.test.js
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import 'web-audio-test-api';
import 'babel-polyfill';

Expand Down

0 comments on commit 18470cf

Please sign in to comment.