-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.cjs
41 lines (40 loc) · 893 Bytes
/
jest.config.cjs
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
40
41
'use strict';
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
verbose: false,
roots: ['<rootDir>/src'],
resolver: "jest-ts-webcompat-resolver",
coveragePathIgnorePatterns: [
"routers"
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
testMatch: [
'**/?(*.)+(spec|test).+(ts|tsx|js)'
],
collectCoverageFrom: [
'src/**/*.ts*'
],
coverageThreshold: {
global: {
branches: 0,
functions: 80,
lines: 80,
statements: 80
}
},
coverageReporters: ['json', 'lcov', 'text', 'clover'],
coverageDirectory: 'jest/coverage',
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'jest/junit',
outputName: 'junit.xml',
}
]
]
};