/** * Vitest setup: registers jest-dom matchers and cleans up the DOM after * every test (React Testing Library auto-cleanup needs this when globals * are disabled). */ import '@testing-library/jest-dom/vitest'; import { cleanup } from '@testing-library/react'; import { afterEach } from 'vitest'; afterEach(() => { cleanup(); });