forked from awslabs/diagram-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.json
42 lines (42 loc) · 1.16 KB
/
jest.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
{
"collectCoverage": true,
"collectCoverageFrom": ["src/**/*.{ts,tsx}"],
"coveragePathIgnorePatterns": [
"/testing/",
"/typings/",
"/src/components/index.ts",
"/src/state/index.ts",
"/src/service/index.ts"
],
"coverageDirectory": "<rootDir>/coverage",
"coverageReporters": ["text-summary", "cobertura", "html", "json-summary"],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx"],
"moduleNameMapper": {
"\\.(css|less|sass|scss)$": "<rootDir>/src/__mocks__/style.ts",
"^diagramMaker/(.*)$": "<rootDir>/src/$1",
"^react$": "preact/compat",
"^react-dom/test-utils$": "preact/test-utils",
"^react-dom$": "preact/compat",
"^react/jsx-runtime$": "preact/jsx-runtime"
},
"setupFiles": [
"<rootDir>/src/testing/test-setup.ts"
],
"testEnvironment": "jsdom",
"testMatch": ["**/?(*.)(spec|test).(ts|tsx)"],
"testURL": "http://console.aws.amazon.com#mock",
"transform": {
"\\.(ts|tsx|js|jsx)": "ts-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?!lodash-es)"
]
}