Files
redocly-cli/jest.config.js
Andrew Tatomyr 2bfef43b8a chore: update test script and the corresponding pipelines (#1593)
* chore: update test script and the corresponding pipelines

* update the coverage threshold
2024-06-21 19:39:57 +08:00

34 lines
713 B
JavaScript

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/utils/assert-node-version.ts',
],
coverageThreshold: {
'packages/core/': {
statements: 80,
branches: 72,
functions: 73,
lines: 80,
},
'packages/cli/': {
statements: 60,
branches: 52,
functions: 60,
lines: 60,
},
},
testMatch: ['**/__tests__/**/*.test.ts', '**/*.test.ts'],
globals: {
'ts-jest': {
diagnostics: false,
},
},
};