Skip to content

Commit 5b894c0

Browse files
authored
chore: generate coverage report in text (#26881)
For people working over SSH, that can't comfortably look at `coverage/index.html`, generate `coverage/coverage.txt` instead. Closes #26078 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 6cffca0 commit 5b894c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/@aws-cdk/cdk-build-tools/config/jest.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,17 @@ module.exports = {
3535
},
3636
},
3737
collectCoverage: true,
38-
coverageReporters: ['lcov', 'html', 'text-summary'],
38+
coverageReporters: [
39+
'lcov',
40+
'html',
41+
'text-summary',
42+
['text', { file: 'coverage.txt' }],
43+
],
3944
coveragePathIgnorePatterns: [
4045
'\\.generated\\.[jt]s$',
4146
'<rootDir>/test/',
4247
'.warnings.jsii.js$',
48+
'/node_modules/',
4349
],
4450
reporters: [
4551
'default',

0 commit comments

Comments
 (0)