-
-
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
[Bug]: Document v8
code coverage options
#12835
Comments
You should use |
Thanks for pointing that out! That was a simple mistake on my part 🤦 |
We should probably mention this in our docs |
Would it be possible to make this more clear in the docs? |
wanna send a pr? 🙂 |
Indeed. Would be really nice to have docs covering difference between For the beginning, perhaps a note on ignore comments could be added next to |
Both, I think. Or at least in |
v8
for coverage provider breaks /* istanbul ignore next */
v8
code coverage options
Just checking if that was addressed to me or @mrazauskas 🙂 |
Just do it, if that is interesting for you (; |
Sure, I could do that 🙂 I'm a bit worried that a note on ignore comments would be too specific. Perhaps it might be best to just have permalinks istanbul and c8 docs (example)? |
It's non obvious v8 provider needs c8 comments, so I do think it makes sense there |
Not sure which place is the best. Might be we all have somewhat different picture in our minds. Just try putting it together and open a PR. It is easier to reason about a real thing. A general sentence with links should be enough. By the way, this looks like some draft (last bullet) – #11188 |
Made PR #12836 😃 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
28.1.0
Steps to reproduce
yarn
yarn test-v8
, see that coverage is <100%yarn test-babel
, see that coverage is 100%Expected behavior
That coverage with the
v8
provider would be 100%, because the default switch case is ignored via/* istanbul ignore next */
Actual behavior
/* istanbul ignore next */
seems to be ignored when using thev8
provider.Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: