-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
42 lines (42 loc) · 906 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
38
39
40
41
42
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"roots": [
"<rootDir>/src"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"maxWorkers": 50,
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/node_modules/",
"!src/**/__stories__/*.{js?,ts?}",
"!src/**/__tests__/*.{js?,ts?}",
"!src/**/__mocks__/*.{js?,ts?}",
"!src/utils/*.{js,jsx,ts,tsx}",
"!src/main.tsx"
],
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100
}
},
"moduleNameMapper": {
"\\.svg": "<rootDir>/jest/__mocks__/svgrMock.js",
"^@/(.*)$": "<rootDir>/src/$1"
},
"setupFilesAfterEnv": ["./jest/setupTests.ts"]
}