-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
37 lines (37 loc) · 972 Bytes
/
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
{
"clearMocks": true,
"collectCoverageFrom": [
"**/*.{ts,tsx}",
"!**/*.d.ts",
"!**/node_modules/**"
],
"coverageProvider": "v8",
"coverageReporters": [
"lcov", "text", "text-summary"
],
"testEnvironment": "jsdom",
"coverageThreshold": {
"global": {
"branches": 85,
"functions": 70,
"lines": 70,
"statements": 70
}
},
"moduleFileExtensions": ["ts", "tsx", "js"],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|pdf)$": "<rootDir>/src/__tests__/__mocks__/fileMock.ts",
"\\.(css|scss)$": "<rootDir>/src/__tests__/__mocks__/styleMock.ts",
"react-i18next": "<rootDir>/src/__tests__/__mocks__/react-i18next.tsx"
},
"setupFiles": [
"raf/polyfill"
],
"testPathIgnorePatterns": [
".*/TestUtils.spec.ts"
],
"testRegex": "/src/__tests__/.*\\.(spec|test)\\.(ts|tsx|js)$",
"transform": {
"\\.(ts|tsx)$": "ts-jest"
}
}