forked from Bitshala-Incubator/silent-pay-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
32 lines (31 loc) · 844 Bytes
/
jest.config.ts
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
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
preset: 'ts-jest',
verbose: true,
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
roots: ['<rootDir>/src/'],
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['<rootDir>/src/**/*.(t|j)s'],
coveragePathIgnorePatterns: [
'.*.controller.ts',
'.*.module.ts',
'.*.entity.ts',
'.*.dto.ts',
'.*.spec.ts',
'.*.module-definition.ts',
'.*.configuration.ts',
'.*.configuration.model.ts',
'.*./main.ts',
'node_modules',
],
coverageDirectory: './coverage',
testEnvironment: 'node',
moduleNameMapper: {
'@/(.*)': '<rootDir>/src/$1',
},
};
export default config;