-
Notifications
You must be signed in to change notification settings - Fork 38
/
jest.config.ts
39 lines (37 loc) · 1015 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
33
34
35
36
37
38
39
/* eslint-disable @typescript-eslint/naming-convention */
import type { Config } from 'jest';
const config: Config = {
moduleFileExtensions: ['js', 'json', 'ts'],
transform: {
'^.+\\.spec\\.(t|j)s$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
},
],
'^.+\\.(t|j)s$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
},
],
},
testTimeout: 120_000,
testEnvironment: 'node',
verbose: true,
detectLeaks: false,
detectOpenHandles: true,
collectCoverage: true,
collectCoverageFrom: ['**/*.ts', '!**/*.d.ts'],
coverageThreshold: {
global: {
statements: 60,
branches: 60,
functions: 60,
lines: 60,
},
},
coveragePathIgnorePatterns: ['<rootDir>/jest.config.ts', '.mock.ts', 'spec/'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
};
export default config;