-
Notifications
You must be signed in to change notification settings - Fork 36
/
jest.json
29 lines (29 loc) · 835 Bytes
/
jest.json
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
{
"coverageThreshold": {
"global": {
"statements": 50,
"branches": 50,
"functions": 20,
"lines": 50
}
},
"rootDir": ".",
"collectCoverage": true,
"coverageDirectory": "<rootDir>/tests/coverage",
"coveragePathIgnorePatterns": ["<rootDir>/node_modules", "<rootDir>/tests"],
"transform": {
"^.+\\.jsx?$": "babel-jest"
},
"globals": {
"NODE_ENV": "test"
},
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/config/jest/fileMock.js",
"\\.(css|scss)$": "<rootDir>/tests/config/jest/styleMock.js"
},
"testRegex": "(/__tests__/.*(^scenarios)|(\\.|/)(func|spec))\\.jsx?$",
"setupFiles": [
"<rootDir>/tests/config/jest/reactShim.js",
"<rootDir>/tests/config/jest/enzymeSetup.js"
]
}