-
Notifications
You must be signed in to change notification settings - Fork 720
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
cleanup
is not automatically called after each test
#1331
Comments
I ran into this issue as well. In order to avoid it, set The code checks if there is a globally available The setup documentation includes |
Since it's not a code issue, I'm transferring this to the docs repo :) |
@timdeschryver little heads up: I think this issue can be closed! It was resolved by #1360. Vitest setup instructions now include:
I'm planning on doing an |
Thanks @mcous :) |
The documentation says that
cleanup
is done automatically.I have a different experience, however. This test passes:
If I add another test after it, that one fails:
The error is:
If I add this to the top of my file, both tests pass:
Here is a small repo showcasing the issue: https://github.com/Stadly/reproduction/tree/testing-library/no-cleanup-with-svelte
The text was updated successfully, but these errors were encountered: