forked from Redocly/redocly-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (33 loc) · 707 Bytes
/
Copy pathjest.config.js
File metadata and controls
33 lines (33 loc) · 707 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
33
module.exports = {
clearMocks: true,
restoreMocks: true,
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
'packages/*/src/**/*.ts',
'!packages/**/__tests__/**/*',
'!packages/core/src/benchmark/**/*',
'!packages/cli/src/index.ts',
'!packages/cli/src/assert-node-version.ts',
],
coverageThreshold: {
'packages/core/': {
statements: 80,
branches: 71,
functions: 71,
lines: 80,
},
'packages/cli/': {
statements: 55,
branches: 48,
functions: 55,
lines: 55,
},
},
testMatch: ['**/__tests__/**/*.test.ts', '**/*.test.ts'],
globals: {
'ts-jest': {
diagnostics: false,
},
},
};