Testing a Finalizer Call in Vitest

Anyone have a snippet testing that a finalizer has been called in vitest?
Was this page helpful?