Open dten opened 2 years ago
I havent tried your setup, but had a similar issue with my TS compiler plaining about the components passed into shallowMount/mount.
I did a little type casting to get it working
import { Component } from "vue"
const testComponent: Component = <YourComponent>;
mount(testComponent, {...})
Subject of the issue
type checking when using vue-utils when using vue 2.7.8 fails because an extra argument was added to the vue types
Steps to reproduce
in this repo upgrade
vue
,vue-template-compiler
andtypescript
(needed to parse the vue d.ts files) thenyarn test:types
Expected behaviour
should be compatible
Actual behaviour
Possible Solution
some changes to support latest vue 2