-
-
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
globalSetup › teardown
runs twice since 0.30.0
#3181
Comments
Start a new pull request in StackBlitz Codeflow. |
This is happening to me as well with
AND
So it looks like one of the Hope this extra info helps. |
Thank you for your investigation. #3188 should fix this |
Describe the bug
In Vitest 0.30.0, the global
teardown
runs twice. I configured it like this:In Vitest 0.29, the
teardown
only ran once. This was much better, because I close a Postgres connection pool in there, which actually throws an error if it gets closed twice.I think/hope this is a bug. I hope Vitest can return to the previous behaviour!
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-searqk?file=setup.ts
npm run test:run
(should run automatically when opening the link)teardown!
is printed twiceSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: