-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wrong coverage when using isolate: false #6736
Comments
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 " |
Hi! Any updates on this? Is there any way I can help? I really would like to use |
On vitest/packages/coverage-istanbul/src/index.ts Lines 18 to 20 in 8878b04
On |
And Need to check if we are running setupFiles outside |
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: