// vitest.setup.ts import { afterEach } from 'vitest'; import { cleanup } from '@testing-library/react'; import '@testing-library/jest-dom/vitest'; // You can add any other global setup here if needed. // Automatically run cleanup after each test case (e.g., clearing jsdom) afterEach(cleanup);