Skip to content

Commit

Permalink
chore: generate coverage report in text (#26881)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
rix0rrr authored Aug 25, 2023
1 parent 6cffca0 commit 5b894c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/@aws-cdk/cdk-build-tools/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$',
'<rootDir>/test/',
'.warnings.jsii.js$',
'/node_modules/',
],
reporters: [
'default',
Expand Down

0 comments on commit 5b894c0

Please sign in to comment.