forked from VitaStellqr/VitaStellar-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.local.config.js
More file actions
32 lines (32 loc) · 808 Bytes
/
Copy pathjest.local.config.js
File metadata and controls
32 lines (32 loc) · 808 Bytes
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
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
roots: ['<rootDir>'],
// Do NOT run global test setup (avoids DB initialization)
setupFilesAfterEnv: [],
setupFiles: [],
testTimeout: 30000,
globals: {
'ts-jest': {
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
diagnostics: false,
isolatedModules: true,
},
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^@modules/(.*)$': '<rootDir>/modules/$1',
'^@common/(.*)$': '<rootDir>/common/$1',
'^src/(.*)$': '<rootDir>/$1',
},
};