cal.pub0.org/packages/ui/components/test-setup.ts

10 lines
215 B
TypeScript

import matchers from "@testing-library/jest-dom/matchers";
import { cleanup } from "@testing-library/react";
import { afterEach, expect } from "vitest";
expect.extend(matchers);
afterEach(() => {
cleanup();
});