Skip to content

Commit 60b4eee

Browse files
committed
1 parent bb8341a commit 60b4eee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default defineConfig({
1111
}),
1212
],
1313
test: {
14+
// It is required for auto cleanup to work
15+
// https://testing-library.com/docs/react-testing-library/setup#auto-cleanup-in-vitest
16+
globals: true,
1417
environment: "jsdom",
1518
setupFiles: ["./test/setup.ts"],
1619
},

0 commit comments

Comments
 (0)