-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathconfig.react-dom-test-suite.js
More file actions
32 lines (30 loc) · 1.02 KB
/
config.react-dom-test-suite.js
File metadata and controls
32 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// const packageJSON = require('../../package.json');
// module.exports = Object.assign(
// {},
// // packageJSON.jest,
// {
// transform:{
// '.*': require.resolve('./preprocess.react-test-suite.js')
// },
// setupFiles: ['./test/setup.js'],
// moduleNameMapper: {
// 'react-dom': '<rootDir>/lib/index.js',
// },
// testRegex:
// 'test/react-test-suite/packages/react-dom/src/__tests__/.*\\.js$',
// rootDir: process.cwd(),
// roots: ['<rootDir>/test/react-test-suite/packages'],
// },
// );
const reactJestSourceConfig = require('../../test/react-test-suite/scripts/jest/config.source.js');
module.exports = Object.assign({}, reactJestSourceConfig, {
modulePathIgnorePatterns: [
'<rootDir>/test/react-test-suite/scripts/rollup/shims/',
'<rootDir>/test/react-test-suite/scripts/bench/',
],
moduleNameMapper: {
'react-dom': '<rootDir>/lib/index.js',
},
testRegex: '/react-dom/src/__tests__/[^/]*(\\.js)$',
roots: ['<rootDir>/test/react-test-suite/packages'],
});