[heft-jest-plugin] Add --disable-code-coverage option #3367
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a command-line option for Heft that temporarily disables code coverage.
Fixes #3307
Details
In some cases (for example, when using
--watch
on files that end up running tests in multiple files), the output of the code coverage reporter can be long and get in the way of the test failures the developer is focusing on.A command-line option allows a developer to temporarily opt-out of code coverage while focusing on fixing, and then they can turn it back on (without the hassle of hand-editing a
jest.config.json
and possibly accidentally checking it in).How it was tested
--disable-code-coverage
is specified