Skip to content

Commit

Permalink
Add react compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 11, 2024
1 parent ca8f25b commit 2f62b7f
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 318 deletions.
48 changes: 28 additions & 20 deletions react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,34 @@ module.exports = {
testEnvironment: 'jest-fixed-jsdom',
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleNameMapper:{
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "<rootDir>/src/__mocks__/styleMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js"
},
//changedSince:'origin/main',
/*
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: -10,
},
},
*/
moduleDirectories: [
"node_modules",
"src"
],
transformIgnorePatterns: [
"node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"
]
};
// Uncomment if needed for coverage thresholds
/*
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: -10,
},
},
*/
moduleDirectories: [
"node_modules",
"src"
],
transformIgnorePatterns: [
"node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"
],
// Enable ESLint plugin for React Compiler
plugins: [
'eslint-plugin-react-compiler',
],
// Add rule overrides if required
rules: {
'react-compiler/transform': 'warn', // Change to 'error' if stricter enforcement is needed
},
};
Loading

0 comments on commit 2f62b7f

Please sign in to comment.