-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No such file or directory for coverage files #4943
Comments
Hello @C0ZEN. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I can reproduce this on watch mode. If test re-run is triggered while current run is looping through coverage results, the next run will remove the files and earlier run will cause this error. In browser mode this is easily reproducible by opening Vitest UI in multiple tabs. |
After testing multiple different solutions for this, I think the best option is to make coverage providers aware of earlier runs. They should keep similar In I've also tried to implement some kind of cancelling mechanism to abort earlier runs. Not sure if that's needed. |
Describe the bug
After the migration to Vite 5, I started having flaky failing tests due to unfound coverage files, but only on the CI (GitHub actions).
Note that I use Nx to run the tests.
Reproduction
N/A
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: