-
Notifications
You must be signed in to change notification settings - Fork 4
/
jest.config.json
29 lines (29 loc) · 970 Bytes
/
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
{
"testPathIgnorePatterns": ["node_modules"],
"testTimeout": 30000,
"projects": [
{
"displayName": "Node",
"testEnvironment": "node",
"testRegex": "((\\.|/)(test|test-node))\\.(j|t)s$",
"transform": {"\\.(j|t)s$": "jest-esbuild"},
"moduleNameMapper": {
"\\.(css|styl)$": "<rootDir>/__tests_utils__/style-mock.js"
}
},
{
"displayName": "JSDom",
"transform": {"\\.(j|t)s$": "jest-esbuild"},
"testEnvironment": "jsdom",
"testRegex": "((\\.|/)(test|test-jsdom))\\.(j|t)s$",
"moduleNameMapper": {
"\\.(css|styl)$": "<rootDir>/__tests_utils__/style-mock.js"
}
},
{
"preset": "jest-playwright-preset",
"transform": {"\\.(j|t)s$": "jest-esbuild"},
"testRegex": "((\\.|/)(test-chrome))\\.(j|t)s$"
}
]
}