-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.js
34 lines (34 loc) · 1.14 KB
/
jest.config.js
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
module.exports = {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/presences/build/",
"<rootDir>/presences/out/",
"<rootDir>/incidents/build/",
"<rootDir>/incidents/out/",
"<rootDir>/common/build/"
],
"verbose": true,
"testURL": "http://localhost/",
"coverageDirectory": "coverage/front",
"coverageReporters": [
"text",
"cobertura"
],
"moduleNameMapper": {
"^@common(.*)$": "<rootDir>/common/src/main/resources/ts$1",
"^@incidents(.*)$": "<rootDir>/incidents/src/main/resources/public/ts$1",
"^@presences(.*)$": "<rootDir>/presences/src/main/resources/public/ts$1",
"^@massmailing(.*)$": "<rootDir>/massmailing/src/main/resources/public/ts$1",
"^@statistics(.*)$": "<rootDir>/statistics-presences/src/main/resources/public/ts$1",
'^axios$': require.resolve('axios')
}
};