amanpay / web /src /test /setup.ts
MHamdan's picture
CI deploy 84761d0
de6cac5 verified
Raw
History Blame Contribute Delete
292 Bytes
import '@testing-library/jest-dom/vitest'
import { afterEach } from 'vitest'
import { cleanup } from '@testing-library/react'
// Unmount React trees between tests so components (and their polling timers /
// event handlers) from one test never leak into the next.
afterEach(() => cleanup())