mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
* chore: update test script and the corresponding pipelines * update the coverage threshold
34 lines
713 B
JavaScript
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,
|
|
},
|
|
},
|
|
};
|