Open History to see the last commit
1import "@testing-library/jest-dom/vitest"
2import { cleanup } from "@testing-library/react"
3import { afterEach } from "vitest"
4
5declare global {
6 var IS_REACT_ACT_ENVIRONMENT: boolean
7}
8
9global.IS_REACT_ACT_ENVIRONMENT = true
10// https://testing-library.com/docs/react-testing-library/api#cleanup
11afterEach(() => cleanup())