Files
OllaHub/vitest.setup.ts
T

6 lines
181 B
TypeScript

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