Skip to content

Commit

Permalink
Move to jest-fixed-jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Jan 1, 2025
1 parent 229d79c commit 37b3436
Show file tree
Hide file tree
Showing 4 changed files with 649 additions and 28 deletions.
9 changes: 4 additions & 5 deletions react/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const ReactCompilerConfig = {
'react-compiler/react-compiler': 'error',
}

module.exports = {
presets: [
'@babel/preset-env',
['@babel/preset-react', {runtime: 'automatic'}],
],
plugins: [
['babel-plugin-react-compiler', ReactCompilerConfig],
['babel-plugin-react-compiler', {
'react-compiler/react-compiler': 'error',
}],
'babel-plugin-istanbul'
]
};
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
Loading

0 comments on commit 37b3436

Please sign in to comment.