Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 735f174

Browse files
committed
update testEnvironment
1 parent 2cb1bf5 commit 735f174

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

site/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
},
2828
],
2929
},
30-
testEnvironment: "jsdom",
30+
testEnvironment: "jest-fixed-jsdom",
3131
testEnvironmentOptions: {
3232
customExportConditions: [""],
3333
},

site/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"storybook": "STORYBOOK=true storybook dev -p 6006",
2525
"storybook:build": "storybook build",
2626
"storybook:ci": "storybook build --test",
27-
"test": "jest --selectProjects test",
27+
"test": "jest",
2828
"test:ci": "jest --selectProjects test --silent",
2929
"test:coverage": "jest --selectProjects test --collectCoverage",
3030
"test:watch": "jest --selectProjects test --watch",
@@ -170,6 +170,7 @@
170170
"jest": "29.7.0",
171171
"jest-canvas-mock": "2.5.2",
172172
"jest-environment-jsdom": "29.5.0",
173+
"jest-fixed-jsdom": "0.0.9",
173174
"jest-location-mock": "2.0.0",
174175
"jest-websocket-mock": "2.5.0",
175176
"jest_workaround": "0.1.14",

site/pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)