-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (33 loc) · 944 Bytes
/
Copy pathjest.config.js
File metadata and controls
33 lines (33 loc) · 944 Bytes
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
33
module.exports = {
'displayName': 'unit',
'rootDir': '.',
'modulePaths': [
'<rootDir>/src',
],
'testMatch': [
'**/?(*.)(spec|test).js?(x)',
],
'modulePathIgnorePatterns': [
'<rootDir>/node_modules/(?!(fbjs/lib/|react/lib/|fbjs-scripts/jest))',
],
'transform': {
'^.+\\.jsx?$': 'babel-jest',
},
'setupTestFrameworkScriptFile': './jest.setup.js',
'testResultsProcessor': 'jest-junit-reporter',
'collectCoverage': true,
'coveragePathIgnorePatterns': [
'/node_modules/',
'<rootDir>/package.json',
'<rootDir>/jest/',
'<rootDir>/src/__tests__/resources/',
'<rootDir>/src/__tests__/*',
],
'coverageDirectory': './tmp/coverage-report/',
'cacheDirectory': './tmp/jest-cache/',
'globals': {
'__DEV__': true,
'__PROD__': false,
'__VERSION__': require('./package.json').version,
},
}