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
found the answer for anyone interested https://vitest.dev/config/#globalsetup
Vitest
A blazing fast unit test framework powered by Vite
the teardown is confusingly handled by by the
globalSetup
config