Seeking Neater Alternatives for Vitest Per-Test Cleanup with CleanupService

Vitest per-test cleanup: We've just created an ad-hoc CleanupService which effectively only adds a finalizer where we do cleanup. Is there a neater way to do this?
Was this page helpful?