-
Notifications
You must be signed in to change notification settings - Fork 10
/
jest.config.mjs
39 lines (37 loc) · 1.08 KB
/
jest.config.mjs
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
export default {
"testEnvironment": "jsdom",
"maxConcurrency": 10,
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest",
},
"moduleNameMapper": {
"^@querycap/lodash$": "<rootDir>/@querycap/lodash/lodash.mjs",
"^@querycap-dev/babel-preset": "<rootDir>/@querycap-dev/babel-preset/index.mjs",
"^@reactorx/([^/]+)$": "<rootDir>/@reactorx/$1/index.ts",
"^@querycap-dev/([^/]+)$": "<rootDir>/@querycap-dev/$1/index.ts",
"^@querycap/([^/]+)$": "<rootDir>/@querycap/$1/index.ts",
"^@querycap-ui/([^/]+)$": "<rootDir>/@querycap-ui/$1/index.ts",
// https://github.com/facebook/jest/issues/12270
"#ansi-styles": "chalk/source/vendor/ansi-styles/index.js",
"#supports-color": "chalk/source/vendor/supports-color/index.js",
},
"moduleFileExtensions": [
"tsx",
"ts",
"json",
"jsx",
"js",
],
"extensionsToTreatAsEsm": [
".tsx",
".ts",
],
"modulePaths": [
"<rootDir>",
],
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/@@deprecated/",
],
"testRegex": ".*/__tests__/.+\\.(generator|test|spec)\\.(ts|tsx)$",
};