Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jun 22, 2023
1 parent bc615a9 commit 39e9855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vitest/src/integrations/env/jsdom.ts
Expand Up @@ -63,11 +63,14 @@ export default <Environment>({
...restOptions,
},
)
const clearWindowErrors = catchWindowErrors(dom.window as any)

return {
getVmContext() {
return dom.getInternalVMContext()
},
teardown() {
clearWindowErrors()
dom.window.close()
},
}
Expand Down

0 comments on commit 39e9855

Please sign in to comment.