Skip to content

Commit

Permalink
Add jest-fixed-jsdom as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 11, 2024
1 parent 97f812c commit ca8f25b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 37 deletions.
2 changes: 1 addition & 1 deletion react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
coverageReporters: ["json", "lcov", "text", "clover"],
collectCoverageFrom: ['src/Components/*.js','src/pages/*.js'],
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
testEnvironment: 'jest-fixed-jsdom',
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleNameMapper:{
Expand Down
51 changes: 15 additions & 36 deletions react/package-lock.json

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

1 change: 1 addition & 0 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"emoji-picker-react": "^4.12.0",
"i18next": "^23.16.2",
"i18next-browser-languagedetector": "^8.0.2",
"jest-fixed-jsdom": "^0.0.9",
"jest-websocket-mock": "^2.5.0",
"lodash": "^4.17.21",
"nanoid": "^5.0.9",
Expand Down

0 comments on commit ca8f25b

Please sign in to comment.