-
Notifications
You must be signed in to change notification settings - Fork 7
/
jest.config.json
36 lines (36 loc) · 874 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
30
31
32
33
34
35
36
{
"transform": {
"^.+\\.tsx?$": ["ts-jest/legacy", {
"tsconfig": "<rootDir>/tsconfig.test.json",
"useESM": true
}]
},
"testEnvironment": "node",
"coverageDirectory": "./target/coverage",
"collectCoverage": true,
"coveragePathIgnorePatterns": [],
"collectCoverageFrom": [
"<rootDir>/src/main/**/*.(j|t)s"
],
"testMatch": [
"<rootDir>/src/test/js/**/*.js",
"<rootDir>/src/test/ts/**/*.ts"
],
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/src/test/fixtures"
],
"extensionsToTreatAsEsm": [".ts"],
"moduleNameMapper": {
"#ansi-styles": "<rootDir>/node_modules/chalk/source/vendor/ansi-styles/index.js",
"#supports-color": "<rootDir>/node_modules/chalk/source/vendor/ansi-styles/index.js"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}