forked from Stellar-Uzima/Uzima-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (35 loc) 路 927 Bytes
/
Copy pathjest.config.js
File metadata and controls
35 lines (35 loc) 路 927 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
33
34
35
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>', '<rootDir>/../test'],
setupFilesAfterEnv: ['<rootDir>/../test/jest.setup.ts'],
setupFiles: ['<rootDir>/../test/jest.env.ts'],
testTimeout: 30000,
globals: {
'ts-jest': {
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
diagnostics: false,
isolatedModules: true,
},
},
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/$1',
'^@/(.*)$': '<rootDir>/$1',
'^@modules/(.*)$': '<rootDir>/modules/$1',
'^@common/(.*)$': '<rootDir>/common/$1',
'^src/(.*)$': '<rootDir>/$1',
},
moduleDirectories: ['node_modules', '<rootDir>'],
};