We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd3129 commit c7e093fCopy full SHA for c7e093f
packages/vuetify/test/setup/unit-setup.ts
@@ -1,6 +1,11 @@
1
-import { afterEach } from 'vitest'
+import { afterEach, vi } from 'vitest'
2
import { cleanup } from '@testing-library/vue'
3
4
+// Stub visualViewport so Vuetify components (e.g. VMenu) don't crash in JSDOM
5
+if (!globalThis.visualViewport) {
6
+ vi.stubGlobal('visualViewport', new EventTarget())
7
+}
8
+
9
afterEach(() => {
10
cleanup()
11
})
0 commit comments