Open RodrigoFerretti opened 6 days ago
Does this happen when setup files are not importing source files?
@AriPerkkio Removing the "multiply" function from the "setup.ts" file fixes the problem for this reproduction code, but it is impossible for me to do something like this in the project I am working on. I kept the isolate true option to keep the coverage, even though the tests take longer like this.
Thanks for checking. It helps us debugging when we can narrow down the required conditions to "setupFiles
+ isolate: false
" only.
Describe the bug
This is the same bug as mentioned in https://github.com/vitest-dev/vitest/issues/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