ci: Setup code-coverage reporting (no-changelog) (#5669)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-10 16:53:05 +01:00
committed by GitHub
parent 5f238ea641
commit 3831201aaf
9 changed files with 25 additions and 8 deletions

View File

@@ -22,11 +22,15 @@ const config = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
collectCoverage: true,
coverageReporters: [process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary'],
collectCoverageFrom: ['src/**/*.ts'],
};
if (process.env.CI === 'true') {
config.maxWorkers = 2;
config.workerIdleMemoryLimit = 2048;
config.coverageReporters = ['cobertura'];
}
module.exports = config;