-
Notifications
You must be signed in to change notification settings - Fork 86
/
jest.config.json
38 lines (38 loc) · 1.05 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
{
"notify": false,
"setupFiles": ["raf/polyfill", "<rootDir>/enzyme.config.js"],
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/src/__spec_helper__/index.ts",
"<rootDir>/src/__spec_helper__/expect.ts",
"@testing-library/jest-dom",
"jest-canvas-mock"
],
"snapshotSerializers": ["enzyme-to-json/serializer"],
"testMatch": ["**/?(*.)+(spec|test).[jt]s?(x)"],
"testPathIgnorePatterns": ["node_modules", "lib", "esm"],
"moduleDirectories": ["src", "node_modules"],
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"node_modules",
"src/__spec_helper__",
"src/locales",
"lib",
"esm"
],
"coverageReporters": ["text-summary", "html"],
"coverageDirectory": "<rootDir>/coverage",
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "mjs"],
"transform": {
"^.+\\.(js|mjs|jsx|ts|tsx)$": "babel-jest",
"^.+\\.svg$": "<rootDir>/svgTransform.js"
}
}