my-dapp/packages/dapp-ui/vitest.setup.ts
2024-07-22 12:25:24 +03:00

9 lines
219 B
TypeScript

import '@testing-library/jest-dom';
import { afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
// runs a cleanup after each test case (e.g. clearing jsdom)
afterEach(() => {
cleanup();
});