forked from Sage/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
49 lines (49 loc) · 1.11 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
{
"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__.js",
"**/*.spec.js",
"**/*.spec.ts",
"**/*.spec.tsx"
],
"testPathIgnorePatterns": [
"node_modules",
"lib",
"esm"
],
"moduleDirectories": ["src", "node_modules"],
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"node_modules",
"src/__spec_helper__",
"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"
}
}