Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1bbeeb4

Browse files
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

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎src/index.js

Lines changed: 0 additions & 5 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /