Wrong coverage when using isolate: false #6736
Labels
feat: coverage
Issues and PRs related to the coverage feature
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
This is the same bug as mentioned in #3846, but now with minimal reproduction.
I've read somewhere that vitest orders the execution by the file's size, descending.
The coverage is ignored for the smaller tests when the method being tested is called in one of the "setupFiles" configured, even though everything should be covered
Reproduction
https://github.com/RodrigoFerretti/vitest-coverage-w-isolate
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: