Skip to content

Commit

Permalink
build: update jest config to map babel-plugin to compiler source
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfaith committed Feb 20, 2025
1 parent dfd79bd commit a7b80a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/jest/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ module.exports = {
'<rootDir>/scripts/rollup/shims/',
'<rootDir>/scripts/bench/',
],
moduleNameMapper: {
'^babel-plugin-react-compiler$':
'<rootDir>/compiler/packages/babel-plugin-react-compiler/src/index.ts',
},
transform: {
'^.+\\.ts$': [
'babel-jest',
Expand Down
4 changes: 4 additions & 0 deletions scripts/jest/config.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const baseConfig = require('./config.base');

module.exports = Object.assign({}, baseConfig, {
moduleNameMapper: {
'^babel-plugin-react-compiler$':
'<rootDir>/compiler/packages/babel-plugin-react-compiler/src/index.ts',
},
modulePathIgnorePatterns: [
...baseConfig.modulePathIgnorePatterns,
'packages/react-devtools-extensions',
Expand Down

0 comments on commit a7b80a7

Please sign in to comment.