-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.json
59 lines (59 loc) · 1.26 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
53
54
55
56
57
58
59
{
"coverageDirectory": "reports/coverage",
"coverageReporters": [
"clover",
"json",
"json-summary",
"lcov",
"text",
"text-summary"
],
"collectCoverageFrom": [
"src/**/*.{js,ts}",
"!src/index.{js,ts}",
"!src/browser.{js,ts}",
"!**/tests/**"
],
"projects": [
{
"displayName": "test",
"clearMocks": true,
"roots": [
"<rootDir>/src"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,ts}",
"<rootDir>/src/**/*.{spec,test}.{js,ts}"
],
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|ts)$",
"^.+\\.module\\.(css|sass|scss)$"
],
"modulePaths": [
"<rootDir>/src/"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
"\\.(css|less)$": "<rootDir>/scripts/testMock.js"
},
"moduleFileExtensions": [
"js",
"ts",
"json",
"node"
],
"setupFilesAfterEnv": ["<rootDir>/tools/jest.helpers.ts"]
},
{
"displayName": "lint",
"runner": "jest-runner-eslint",
"testMatch": [
"<rootDir>/src/**/*.{js,ts}?",
"<rootDir>/examples/**/*.{js,ts}?",
"<rootDir>/tests/**/*.{js,ts}",
"<rootDir>/tools/**/*.{js,ts}",
"<rootDir>/config/**/*.{js,ts}"
]
}
]
}