12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
import { expect, afterEach } from 'vitest';
|
|
import { cleanup } from '@testing-library/react';
|
|
import * as matchers from '@testing-library/jest-dom/matchers';
|
|
|
|
// Extend Vitest's expect with jest-dom matchers
|
|
expect.extend(matchers);
|
|
|
|
// Cleanup after each test
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|