-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
41 lines (41 loc) · 1.1 KB
/
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
34
35
36
37
38
39
40
41
module.exports = {
roots: ['<rootDir>/tests/'],
verbose: true,
clearMocks: true,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts', '**/__tests__/**/?(*.)+(spec|test).ts'],
testRunner: 'jest-circus/runner',
testPathIgnorePatterns: ['/node_modules/', '/__fixtures__/'],
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
collectCoverage: true,
collectCoverageFrom: [
'**/*.ts',
'!**/*.d.ts',
'!**/dist/**',
'!**/node_modules/**',
'!**/vendor/**',
'!**/generated/**',
'!**/__fixtures__/**',
'!**/scenarios/**',
'!**/redirects/**',
],
coverageThreshold: {
'global': {
branches: 4,
functions: 4,
lines: 4,
statements: 4,
},
'./src/**/*.ts': {
branches: 5,
functions: 7,
lines: 7,
statements: 7,
},
},
coverageDirectory: './coverage',
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html'],
}