diff --git a/test/event.ts b/test/event.ts index 458523f9a..2d923babd 100644 --- a/test/event.ts +++ b/test/event.ts @@ -1,5 +1,5 @@ -import Vue from 'vue'; -import { Wrapper } from '@vue/test-utils'; +import { ComponentPublicInstance } from 'vue'; +import { VueWrapper } from '@vue/test-utils'; function getTouch(el: HTMLElement | Window, x: number, y: number) { return { @@ -18,7 +18,7 @@ function getTouch(el: HTMLElement | Window, x: number, y: number) { // Trigger pointer/touch event export function trigger( - wrapper: Wrapper | HTMLElement | Window, + wrapper: VueWrapper | HTMLElement | Window, eventName: string, x = 0, y = 0,