15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
/**
|
|
* test/setup.ts
|
|
* Global test setup file for Vitest
|
|
* Imports @testing-library/jest-dom for extended matchers
|
|
*/
|
|
|
|
import '@testing-library/jest-dom';
|
|
import { expect, afterEach, vi } from 'vitest';
|
|
import { cleanup } from '@testing-library/react';
|
|
|
|
// Cleanup after each test case
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|