mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
ci: Setup code-coverage reporting (no-changelog) (#5669)
This commit is contained in:
committed by
GitHub
parent
5f238ea641
commit
3831201aaf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user