Does vitest have a global teardown function?

I would like to run some cleanup mode in vitest after ALL tests in every test module are done. Is there a way to do this? All of the module files seem to run in parallel.
2 Replies
Tom
TomOP2y ago
found the answer for anyone interested https://vitest.dev/config/#globalsetup
Vitest
A blazing fast unit test framework powered by Vite
Tom
TomOP2y ago
the teardown is confusingly handled by by the globalSetup config
Want results from more Discord servers?
Add your server