forked from MD-Creative-Production/Sentinel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.backend.config.js
More file actions
29 lines (29 loc) · 843 Bytes
/
Copy pathjest.backend.config.js
File metadata and controls
29 lines (29 loc) · 843 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
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: '.',
testMatch: ['<rootDir>/apps/backend/**/*.spec.ts', '<rootDir>/src/**/*.spec.ts'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: {
module: 'commonjs',
esModuleInterop: true,
experimentalDecorators: true,
emitDecoratorMetadata: true,
strict: true,
skipLibCheck: true,
ignoreDeprecations: '6.0',
types: ['jest', 'node'],
},
},
],
},
moduleNameMapper: {
'^@common/(.*)$': '<rootDir>/apps/backend/src/common/$1',
'^@modules/(.*)$': '<rootDir>/apps/backend/src/modules/$1',
},
collectCoverageFrom: ['apps/backend/src/**/*.ts', 'src/**/*.ts', '!**/*.module.ts'],
};