-
Notifications
You must be signed in to change notification settings - Fork 9
/
.jest.json
40 lines (40 loc) · 1.28 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
{
"verbose": true,
"testRegex": "(/__tests__/.*|(\\.|/)spec)\\.jsx?$",
"setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js",
"modulePaths": [
"<rootDir>/app",
"<rootDir>/app/actions",
"<rootDir>/app/api",
"<rootDir>/app/components",
"<rootDir>/app/containers",
"<rootDir>/app/reducers",
"<rootDir>/app/selectors",
"<rootDir>/app/static",
"<rootDir>/app/store",
"<rootDir>/app/types",
"<rootDir>/app/utils"
],
"moduleFileExtensions": ["js", "jsx", "test.js", "json"],
"moduleDirectories": ["node_modules"],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|scss)$": "identity-obj-proxy"
},
"collectCoverage": true,
"collectCoverageFrom": [
"app/**/*.{js}",
"app/**/*.{jsx}",
"!**/node_modules/**",
"!**/vendor/**",
"!**/dist/**",
"!**/containers/**",
"!**/__tests__/**",
"!**/processIsRunning.js",
"!**/*.test.js",
"!**/*.development.js",
"!app/index.main.js"
],
"coverageReporters": ["text", "html"],
"coveragePathIgnorePatterns": ["<rootDir>/build/", "<rootDir>/node_modules/", "<rootDir>/app/node_modules/", "<rootDir>/app/dist", "<rootDir>/app/types"]
}