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 bb77e99 commit fd6814cCopy full SHA for fd6814c
src/__tests__/utils/index.ts
@@ -23,11 +23,10 @@ type VM<V> = InstanceType<V> & { unmount(): void; [key: string]: any };
23
24
export function mount<V>(Comp: V) {
25
const el = document.createElement('div');
26
- const app = createApp(Comp);
+ const app = createApp(Comp as any);
27
28
- // @ts-ignore
29
- const unmount = () => app.unmount(el);
30
- const comp = (app.mount(el) as any) as VM<V>;
+ const unmount = () => app.unmount();
+ const comp = app.mount(el) as any as VM<V>;
31
comp.unmount = unmount;
32
return comp;
33
}
0 commit comments