| 1 | 'use strict'; |
| 2 | |
| 3 | const baseConfig = require('./config.base'); |
| 4 | |
| 5 | module.exports = Object.assign({}, baseConfig, { |
| 6 | modulePathIgnorePatterns: [ |
| 7 | ...baseConfig.modulePathIgnorePatterns, |
| 8 | 'packages/react-devtools-extensions', |
| 9 | 'packages/react-devtools-facade', |
| 10 | 'packages/react-devtools-shared', |
| 11 | 'packages/react-devtools-cdt-mcp', |
| 12 | 'ReactIncrementalPerf', |
| 13 | 'ReactIncrementalUpdatesMinimalism', |
| 14 | 'ReactIncrementalTriangle', |
| 15 | 'ReactIncrementalReflection', |
| 16 | 'forwardRef', |
| 17 | ], |
| 18 | // RN configs should not run react-dom tests. |
| 19 | // There are many other tests that use react-dom |
| 20 | // and for those we will use the www entrypoint, |
| 21 | // but those tests should be migrated to Noop renderer. |
| 22 | testPathIgnorePatterns: [ |
| 23 | 'node_modules', |
| 24 | 'packages/react-dom', |
| 25 | 'packages/react-server-dom-webpack', |
| 26 | ], |
| 27 | setupFiles: [ |
| 28 | ...baseConfig.setupFiles, |
| 29 | require.resolve('./setupTests.xplat.js'), |
| 30 | require.resolve('./setupHostConfigs.js'), |
| 31 | ], |
| 32 | }); |