forked from pigulla/class-validator-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
33 lines (33 loc) · 974 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
// eslint-disable-next-line unicorn/prefer-module
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coverageReporters: ['lcov', 'text'],
coveragePathIgnorePatterns: ['<rootDir>/src/(.+/)*index.ts', '<rootDir>/src/minimal.ts'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
moduleNameMapper: {
'^~$': '<rootDir>/src/index.ts',
'^~/(.+)': '<rootDir>/src/$1',
'^~test$': '<rootDir>/test/index.ts',
'^~test/(.+)': '<rootDir>/test/$1',
},
resetMocks: true,
setupFiles: ['jest-date-mock'],
setupFilesAfterEnv: ['jest-extended/all', '<rootDir>/test/setup.ts'],
testEnvironment: 'node',
transform: {
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: '<rootDir>/test/tsconfig.json',
},
],
},
}