-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Add collectCoverage to Reference #8996
Conversation
Also noted how to override option set in Configuration
There's already a reference entry for |
Is |
Codecov Report
@@ Coverage Diff @@
## master #8996 +/- ##
========================================
Coverage ? 63.9%
========================================
Files ? 277
Lines ? 11652
Branches ? 2860
========================================
Hits ? 7446
Misses ? 3576
Partials ? 630 Continue to review full report at Codecov.
|
I guess the args are
https://github.com/facebook/jest/blob/master/packages/jest-config/src/setFromArgv.ts#L21-L22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah in the code it may be collectCoverage
, but to users --coverage
is definitely more comfortable to use and we should keep calling that the "default" I think
Updated |
Thanks! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Having been confused myself, as well as noting the same confusion in forums. Many people cannot figure out how to turn off coverage reports, if the option has been set via Configuration.
Note, a similar confusion/change apply to other boolean options as well, but that's not covered in this PR.
Test plan
n/a