-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
63 lines (63 loc) · 1.45 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
60
61
62
63
{
"cacheDirectory": "./.cache/jest",
"coverageReporters": [
"html",
"json",
"lcov",
"text"
],
"coverageDirectory": "<rootDir>/build/coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"modulePathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/",
"<rootDir>/tools"
],
"roots": ["<rootDir>"],
"setupFiles": [
"<rootDir>/tools/helpers/jest.setup.js"
],
"setupFilesAfterEnv": [
"<rootDir>/tools/helpers/jest.setup.afterEnv.js"
],
"testMatch": [
"<rootDir>/test/*.spec.tsx",
"<rootDir>/test/**/*.spec.tsx",
"<rootDir>/test/*.spec.ts",
"<rootDir>/test/**/*.spec.ts"
],
"testPathIgnorePatterns": ["<rootDir>[/\\\\](node_modules|.next)[/\\\\]"],
"transformIgnorePatterns": ["[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$"],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
],
"moduleNameMapper": {
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
"\\.(gif|ttf|eot|svg|png)$": "<rootDir>/test/__mocks__/fileMock.js",
"^helpers/(.*)$": "<rootDir>/helpers/$1"
},
"testEnvironment": "jsdom",
"verbose": false
}