You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@antfu creating an issue to be able to leave some links here. I won't be able to implement this myself, but I checked a bit what is needed and maybe some of these notes end up being useful.
Jest implements coverage using babel, but it can use v8 as an experimental provide. Given that native v8 code coverage is a lot faster, and that in newer versions of node it should work well, I think that vitest should use native v8 coverage directly.
This is the PR where v8 coverage was added to Jest jestjs/jest#8596
There are a few libs that were created as part of this process
Looks like in Jest, they use collect-v8-coverage to create a V8Coverage for every task. Then they convert them with v8-to-istanbul (that requires the source of the file + sourcemaps).
There seems to be a merging needed of the generated reports, and there are a few libs to merge both the V8 format and the Istanbul format. I wonder if there is a way to generate the report without bringing Istanbul here
The text was updated successfully, but these errors were encountered:
@antfu creating an issue to be able to leave some links here. I won't be able to implement this myself, but I checked a bit what is needed and maybe some of these notes end up being useful.
Jest implements coverage using babel, but it can use v8 as an experimental provide. Given that native v8 code coverage is a lot faster, and that in newer versions of node it should work well, I think that vitest should use native v8 coverage directly.
This is the PR where v8 coverage was added to Jest jestjs/jest#8596
There are a few libs that were created as part of this process
There seems to be a merging needed of the generated reports, and there are a few libs to merge both the V8 format and the Istanbul format. I wonder if there is a way to generate the report without bringing Istanbul here
The text was updated successfully, but these errors were encountered: