-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.json
52 lines (52 loc) · 1.58 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
50
51
52
{
"projects": [
{
"preset": "ts-jest",
"rootDir": "./packages/metablock-core",
"automock": false,
"displayName": "@metablock/core",
"testEnvironment": "jsdom",
"testMatch": ["<rootDir>/tests/*.test.ts"],
"setupFiles": ["./setupTests.ts"]
},
{
"preset": "ts-jest",
"rootDir": "./packages/metablock-server",
"automock": false,
"displayName": "@metablock/server",
"testMatch": ["<rootDir>/tests/*.test.ts"],
"setupFiles": ["./setupTests.ts"],
"transformIgnorePatterns": ["/node_modules/(?!@metablock)"]
},
{
"preset": "ts-jest",
"rootDir": "./packages/metablock-notebook",
"automock": false,
"displayName": "@metablock/notebook",
"testEnvironment": "jsdom",
"testMatch": ["<rootDir>/**/*.test.ts"],
"transformIgnorePatterns": ["/node_modules/(?!@metablock)"]
},
{
"preset": "ts-jest",
"rootDir": "./packages/metablock-store",
"automock": false,
"displayName": "@metablock/store",
"testEnvironment": "jsdom",
"testMatch": ["<rootDir>/**/*.test.ts"],
"setupFilesAfterEnv": ["./setupTests.ts"],
"transformIgnorePatterns": ["/node_modules/(?!@metablock)"]
}
],
"transformIgnorePatterns": ["/node_modules/d3-time-format/"],
"coverageReporters": ["json", "html", "lcov", "text", "text-summary"],
"coveragePathIgnorePatterns": ["node_modules", "dist", ".storybook"],
"coverageThreshold": {
"global": {
"branches": 10,
"functions": 10,
"lines": 10,
"statements": 10
}
}
}