forked from stakwork/sphinx-tribes-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
99 lines (99 loc) · 2 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"collectCoverage": true,
"collectCoverageFrom": [
"./src/**/*.{ts,jxs,tsx,js}",
"!src/**/*.spec.tsx",
"!src/**/*.spec.ts",
"!src/**/*.Spec.tsx",
"!src/**/*.Spec.ts"
],
"coverageThreshold": {
"global": {
"lines": 22.31
},
"./src/api/": {
"lines": 52.63
},
"./src/pages/bots/": {
"lines": 0
},
"./src/bounties/": {
"lines": 72.47
},
"./src/components/": {
"lines": 27.32
},
"./src/config/": {
"lines": 60.71
},
"./src/helpers/": {
"lines": 82.39
},
"./src/hooks/": {
"lines": 37.03
},
"./src/pages/leaderboard/": {
"lines": 38.05
},
"./src/pages/superadmin/": {
"lines": 18.7
},
"./src/pages/": {
"lines": 8.3
},
"./src/people/": {
"lines": 7.66
},
"./src/store/": {
"lines": 34.34
},
"./src/pages/tribes/": {
"lines": 6.35
}
},
"moduleFileExtensions": [
"ts",
"js",
"json",
"node",
"tsx",
"jsx"
],
"preset": "ts-jest",
"transform": {
"^.+\\.(ts|tsx)?$": "ts-jest",
"^.+\\.(js|jsx)$": "babel-jest",
"^.+\\.svg$": "<rootDir>/svgTransform.js"
},
"transformIgnorePatterns": [
"/node_modules/(?!core)",
"/node_modules/(?!remark-gfm)",
"/node_modules/(?!@testing-library/jest-dom)"
],
"modulePaths": [
"<rootDir>/src"
],
"moduleNameMapper": {
"react-markdown": "<rootDir>/node_modules/react-markdown/react-markdown.min.js",
"\\.css$": "<rootDir>/src/pages/superadmin/tableComponent/__mocks__/style-mock.js",
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileMock.js"
},
"moduleDirectories": [
"node_modules",
"<rootDir>"
],
"globals": {
"window": {
"location": {
"host": "localhost"
}
},
"testEnvironment": "jsdom"
},
"testEnvironment": "jsdom",
"automock": false,
"resetMocks": false,
"setupFiles": [
"./setupJest.js"
]
}