-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjest.config.js
54 lines (53 loc) · 951 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* tslint:disable */
module.exports = {
roots: [
"<rootDir>/src",
"<rootDir>/utils",
],
testPathIgnorePatterns: [
"/node_modules/",
"/commonjs/",
"/esm/",
"/ts/",
"/docs/",
"/.storybook/",
],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
],
snapshotSerializers: ["enzyme-to-json/serializer"],
setupFilesAfterEnv: [
"<rootDir>/utils/test-config.ts",
],
coverageDirectory: "./coverage",
coveragePathIgnorePatterns: [
"/node_modules/",
"/commonjs/",
"/ts/",
"/esm/",
"/src/Icon/SVGs",
"/src/Layout/Footer",
"/src/Layout/Header",
],
coverageReporters: [
"json",
"text"
],
coverageThreshold: {
global: {
statements: 85,
branches: 75,
functions: 62,
lines: 86
}
}
};