| 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()) | |