diff --git a/tools/@aws-cdk/cdk-build-tools/config/jest.config.js b/tools/@aws-cdk/cdk-build-tools/config/jest.config.js index 6e41fa2e239bf..9a93f61e642ba 100644 --- a/tools/@aws-cdk/cdk-build-tools/config/jest.config.js +++ b/tools/@aws-cdk/cdk-build-tools/config/jest.config.js @@ -35,11 +35,17 @@ module.exports = { }, }, collectCoverage: true, - coverageReporters: ['lcov', 'html', 'text-summary'], + coverageReporters: [ + 'lcov', + 'html', + 'text-summary', + ['text', { file: 'coverage.txt' }], + ], coveragePathIgnorePatterns: [ '\\.generated\\.[jt]s$', '/test/', '.warnings.jsii.js$', + '/node_modules/', ], reporters: [ 'default',