15 lines
333 B
TypeScript
15 lines
333 B
TypeScript
/**
|
|
* Vitest Browser Mode Setup File
|
|
*
|
|
* Setup for component tests running in real browser via Playwright.
|
|
*/
|
|
|
|
import '@testing-library/jest-dom/vitest';
|
|
import { cleanup } from '@testing-library/react';
|
|
import { afterEach, vi } from 'vitest';
|
|
|
|
// Cleanup after each test
|
|
afterEach(() => {
|
|
cleanup();
|
|
vi.clearAllMocks();
|
|
});
|