-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
37 lines (37 loc) · 1.2 KB
/
jest.config.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
{
"roots": ["<rootDir>/src"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "scss"],
"moduleDirectories": ["node_modules"],
"setupFiles": ["<rootDir>/src/setupTests.ts"],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
"!src/index.tsx",
"!src/serviceWorker.ts"
],
"coveragePathIgnorePatterns": [
"./src/*/*.types.{ts,tsx}",
"./src/index.tsx",
"./src/serviceWorker.ts"
],
"coverageReporters": ["json", "lcov", "text", "text-summary", "clover"],
"collectCoverage": true,
"coverageDirectory": "test-coverage",
"coverageThreshold": {
"global": {
"statements": 10,
"branches": 10,
"lines": 10,
"functions": 10
}
},
"snapshotSerializers": ["enzyme-to-json/serializer"],
"moduleNameMapper": {
"\\.(css|styl|less|sass|scss)$": "identity-obj-proxy"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"transform": {
"^.+\\.tsx?$": "ts-jest",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/node_modules/babel-jest"
}
}