Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 2e266a4

Browse files
committed
Call cleanup after each test
1 parent 33d42d7 commit 2e266a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vitest.setup.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import "@testing-library/jest-dom";
22

3+
import { cleanup } from "@testing-library/react";
4+
35
declare global {
46
var IS_REACT_ACT_ENVIRONMENT: boolean;
57
}
68

79
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
10+
11+
afterEach(() => {
12+
cleanup();
13+
});

0 commit comments

Comments
 (0)