-
Notifications
You must be signed in to change notification settings - Fork 56
/
jest.config.json
51 lines (40 loc) · 1.26 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"roots": ["<rootDir>/src"],
"globals": {
"__DEV__": true
},
"transform": {
"\\.(js|jsx)?$": "babel-jest",
"\\.(ts|tsx)?$": "ts-jest",
"\\.(css|styl|less|sass|scss)$": "<rootDir>/node_modules/jest-css-modules-transform"
},
"transformIgnorePatterns": ["node_modules/react-circular-prgoressbar"],
"setupFiles": [
"jest-localstorage-mock",
"<rootDir>/src/__tests__/setupTests.ts"
],
"setupFilesAfterEnv": ["@testing-library/jest-dom/extend-expect"],
"testRegex": "(/__tests__/.*.(test|spec)).(ts|tsx|jsx|js)?$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node", "css"],
"moduleDirectories": ["<rootDir>/src", "node_modules"],
"moduleNameMapper": {
"^@root(.*)$": "<rootDir>/src$1",
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
"^@context/(.*)$": "<rootDir>/src/context/$1",
"^@components/(.*)$": "<rootDir>/src/components/$1",
"^@assets/(.*)$": "<rootDir>/src/assets/$1",
"react-i18next": "<rootDir>/node_modules/react-i18next"
},
"collectCoverage": true,
"coverageReporters": ["lcov"],
"coverageDirectory": "test-coverage",
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"verbose": true
}