test-setup.ts
Language TypeScript231 B6 lines
import '@testing-library/jest-dom/vitest'import { cleanup } from '@testing-library/react'import { afterEach } from 'vitest'// Vitest runs without globals here, so Testing Library cannot register this itself.afterEach(cleanup)