forked from OntoUML/ontouml-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 885 Bytes
/
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
35
module.exports = {
cache: false,
testEnvironment: 'node',
setupFilesAfterEnv: ["./setup.ts"],
transform: {
"^.+\\.(ts|tsx)?$": "ts-jest",
'^.+\\.(ts|tsx)?$': 'babel-jest'
},
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
],
modulePathIgnorePatterns: ["examples"],
watchPathIgnorePatterns: [
"<rootDir>/node_modules",
],
moduleNameMapper: {
"^@test-models(.*)": "<rootDir>/__tests__/test_models$1",
"^@constants(.*)": "<rootDir>/src/constants$1",
"^@error(.*)": "<rootDir>/src/error$1",
"^@libs(.*)": "<rootDir>/src/libs$1",
"^@utils(.*)": "<rootDir>/src/utils$1",
"^@resources(.*)": "<rootDir>/resources$1"
},
testRegex: '/__tests__/libs/.*\\.test\\.(ts|js)$',
coverageDirectory: 'coverage',
collectCoverageFrom: [
'src/**/*.{ts,tsx,js,jsx}',
'!src/**/*.d.ts',
]
};