Replies: 1 comment 2 replies
-
|
We are not planning to change the default value. Users can still change the provider when needed. There's on-going work to make the output of V8 coverage match Istanbul's accuracy in Vitest. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Reason I ask is that I came across this issue today in our codebase, where code coverage wasn't accurate for a new piece of code with an implicit
elsecondition:#2239
Nestled deep inside the description of that ticket, this is actually a known issue with v8, but it was fixed for users of istanbul:
This is a pretty glaring bug in terms of coverage reporting IMO - for new (or lazy 😉 ) engineers, having automated checks and thresholds on code coverage is the best reminder to make sure you test all the branching logic in your code properly. Or at least - you're made aware of the ones you're not testing and you have to qualify that for some reason.
https://vitest.dev/guide/coverage#coverage-providers could be updated to mention the bug at least (maybe a pros/cons of why you should use a certain provider).
Beta Was this translation helpful? Give feedback.
All reactions