Skip to content

Commit 1bbeeb4

Browse files
authored
fix: Revert Errors Regarding Missing Global Hooks (#310)
Please bear in mind that after 8.0.1, v7 and v8 share the same behavior as the main difference between versions has been erased. So everyone should be able to jump from v7 to v8 without experiencing any difference.
1 parent 88fb8cd commit 1bbeeb4

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

src/__tests__/auto-cleanup-vitest-globals.js

-7
This file was deleted.

src/__tests__/auto-cleanup-vitest.js

-10
This file was deleted.

src/index.js

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ if (typeof afterEach === 'function' && !process.env.VTL_SKIP_AUTO_CLEANUP) {
88
afterEach(() => {
99
cleanup()
1010
})
11-
} else if (process.env.VITEST === 'true') {
12-
throw new Error(
13-
"You are using vitest without globals, this way we can't run cleanup after each test.\n" +
14-
"See https://testing-library.com/docs/vue-testing-library/setup for details or set the VTL_SKIP_AUTO_CLEANUP variable to 'true'",
15-
)
1611
}
1712

1813
export * from '@testing-library/dom'

0 commit comments

Comments
 (0)