Skip to content

Commit

Permalink
Replace custom polyfill with jest-fixed-jsdom (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak authored Oct 10, 2024
1 parent 27056bd commit e90c995
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
3 changes: 1 addition & 2 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ module.exports = {
"givens/setup.js",
"jest-extended/all",
],
setupFiles: ["<rootDir>/config/jest.polyfills.js"],
testEnvironment: "jsdom",
testEnvironment: "jest-fixed-jsdom",
testEnvironmentOptions: {
customExportConditions: [""],
},
Expand Down
14 changes: 0 additions & 14 deletions config/jest.polyfills.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"graphql": "^16.9.0",
"jest": "^29.7.0",
"jest-axe": "^9.0.0",
"jest-environment-jsdom": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-fixed-jsdom": "^0.0.4",
"jsonfile": "^6.1.0",
"lodash": "^4.17.21",
"msw": "^2.4.9",
Expand Down
16 changes: 13 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e90c995

Please sign in to comment.