Open kisp opened 3 months ago
import { expect, afterEach } from 'vitest'; import { cleanup } from '@testing-library/react'; import * as matchers from "@testing-library/jest-dom/matchers"; expect.extend(matchers); afterEach(() => { cleanup(); });
https://testing-library.com/docs/react-testing-library/api/#cleanup
test: { globals: true, environment: "jsdom", setupFiles: "./tests/setup.ts", },
https://testing-library.com/docs/react-testing-library/api/#cleanup