import { afterEach } from 'vitest'; import { cleanup } from '@testing-library/react'; // Sem `globals: true` o Testing Library não registra o cleanup sozinho. afterEach(cleanup);