Skip to content

Commit

Permalink
fix: Revert Errors Regarding Missing Global Hooks (#310)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ITenthusiasm authored Nov 20, 2023
1 parent 88fb8cd commit 1bbeeb4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions src/__tests__/auto-cleanup-vitest-globals.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/__tests__/auto-cleanup-vitest.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ if (typeof afterEach === 'function' && !process.env.VTL_SKIP_AUTO_CLEANUP) {
afterEach(() => {
cleanup()
})
} else if (process.env.VITEST === 'true') {
throw new Error(
"You are using vitest without globals, this way we can't run cleanup after each test.\n" +
"See https://testing-library.com/docs/vue-testing-library/setup for details or set the VTL_SKIP_AUTO_CLEANUP variable to 'true'",
)
}

export * from '@testing-library/dom'
Expand Down

0 comments on commit 1bbeeb4

Please sign in to comment.