service-template-react/src/test-setup.ts

6 lines
224 B
TypeScript

import "@testing-library/jest-dom/vitest";
import { cleanup } from "@testing-library/react";
import { afterEach } from "vitest";
// vitest globals are off, so Testing Library can't register this itself.
afterEach(cleanup);