import { afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';

// @testing-library/react auto-registers cleanup only when afterEach is a global.
// We run with globals: false, so register it explicitly.
afterEach(() => {
  cleanup();
});
