Skip to content

Commit e90c995

Browse files
authored
Replace custom polyfill with jest-fixed-jsdom (#838)
1 parent 27056bd commit e90c995

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

config/jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ module.exports = {
1212
"givens/setup.js",
1313
"jest-extended/all",
1414
],
15-
setupFiles: ["<rootDir>/config/jest.polyfills.js"],
16-
testEnvironment: "jsdom",
15+
testEnvironment: "jest-fixed-jsdom",
1716
testEnvironmentOptions: {
1817
customExportConditions: [""],
1918
},

config/jest.polyfills.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
"graphql": "^16.9.0",
6363
"jest": "^29.7.0",
6464
"jest-axe": "^9.0.0",
65-
"jest-environment-jsdom": "^29.7.0",
6665
"jest-extended": "^4.0.2",
66+
"jest-fixed-jsdom": "^0.0.4",
6767
"jsonfile": "^6.1.0",
6868
"lodash": "^4.17.21",
6969
"msw": "^2.4.9",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)