We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
js-dom
1 parent a199a28 commit 8d90affCopy full SHA for 8d90aff
jest.config.cjs
@@ -3,7 +3,7 @@ const { resolve } = require('path');
3
/** @type {import('ts-jest').JestConfigWithTsJest} */
4
module.exports = {
5
preset: 'ts-jest',
6
- testEnvironment: 'node',
+ testEnvironment: 'jsdom',
7
moduleNameMapper: {
8
// TODO: Incase you need assets in test files (🤷♂️),
9
// uncomment the following line.
package.json
@@ -34,6 +34,7 @@
34
"eslint-plugin-n": "^15.0.0",
35
"eslint-plugin-promise": "^6.0.0",
36
"jest": "^29.5.0",
37
+ "jest-environment-jsdom": "^29.5.0",
38
"postcss": "^8.4.23",
39
"prettier": "2.8.8",
40
"rollup": "^3.21.5",
0 commit comments