-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
34 lines (33 loc) · 1.06 KB
/
jest.config.js
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
module.exports = {
"setupFiles": [
"regenerator-runtime/runtime"
],
"snapshotSerializers": ["jest-snapshot-serializer-ansi"],
"moduleNameMapper": {
"\\.(css|scss|svg)$": "identity-obj-proxy",
"^aggregated-translations/(.*)$": "<rootDir>/aggregated-translations/$1.js"
},
"transformIgnorePatterns": [
"node_modules/(?!(@mpages)/)"
],
"setupFilesAfterEnv": [],
"collectCoverage": true,
"collectCoverageFrom": ["src/**/*.js", "src/**/*.jsx"],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": ["src/terra-dev-site/*.*", "src/components", "src/index.js"],
"coverageReporters": ["html", "lcov", "cobertura", "text-summary", "json-summary"],
"testURL": "http://localhost",
"modulePaths": ["<rootDir>/src/", "aggregated-translations"],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"reporters": ["default"],
"testMatch": [
"**/jest/**/(*.)(spec|test).js?(x)"
]
}