mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
29 lines
698 B
JavaScript
29 lines
698 B
JavaScript
|
const ci = !!process.env.CI;
|
||
|
|
||
|
module.exports = {
|
||
|
cacheDirectory: '.cache/jest',
|
||
|
coverageDirectory: './coverage',
|
||
|
collectCoverage: true,
|
||
|
collectCoverageFrom: [
|
||
|
'lib/**/*.{js,ts}',
|
||
|
'!lib/**/*.{d,spec}.ts',
|
||
|
'!lib/**/{__fixtures__,__mocks__}/**/*.{js,ts}',
|
||
|
],
|
||
|
coverageReporters: ci
|
||
|
? ['lcov', 'text-summary']
|
||
|
: ['html', 'json', 'lcov', 'text-summary'],
|
||
|
coverageThreshold: {
|
||
|
global: {
|
||
|
branches: 95,
|
||
|
functions: 100,
|
||
|
lines: 100,
|
||
|
statements: 100,
|
||
|
},
|
||
|
},
|
||
|
setupFilesAfterEnv: ['<rootDir>/test/globals.ts'],
|
||
|
snapshotSerializers: ['<rootDir>/test/newline-snapshot-serializer.ts'],
|
||
|
transform: {
|
||
|
'^.+\\.(j|t)s$': 'babel-jest',
|
||
|
},
|
||
|
};
|