diff --git a/scripts/jest/config.build.js b/scripts/jest/config.build.js index cbbf35d704..558bece9ea 100644 --- a/scripts/jest/config.build.js +++ b/scripts/jest/config.build.js @@ -37,6 +37,10 @@ packages.forEach(name => { module.exports = Object.assign({}, baseConfig, { // Redirect imports to the compiled bundles moduleNameMapper, + modulePathIgnorePatterns: [ + ...baseConfig.modulePathIgnorePatterns, + 'packages/react-devtools-shared', + ], // Don't run bundle tests on -test.internal.* files testPathIgnorePatterns: ['/node_modules/', '-test.internal.js$'], // Exclude the build output from transforms