-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
32 lines (32 loc) · 799 Bytes
/
jest.config.js
File metadata and controls
32 lines (32 loc) · 799 Bytes
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
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {},
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
useESM: true,
},
},
moduleNameMapper: {
'^(\\.{1,2}.*)\\.js$': '$1',
},
testPathIgnorePatterns: ['node_modules', 'dist'],
coverageReporters: ['json', 'html', 'text'],
collectCoverageFrom: [
'src/*.ts',
'!**/node_modules/**',
'!src/clock.ts',
'!src/retry-strategy.ts',
'!src/logger.ts',
],
coverageThreshold: {
global: {
branches: 75,
functions: 80,
lines: 80,
statements: 80,
},
},
};