-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Vue 2.7.16 #2087
Comments
This was referenced Dec 27, 2023
Not an optimal solution, but I was able to work around this by patching the types: import type { ComponentPublicInstanceConstructor } from 'vue/types/v3-component-public-instance';
...
declare module '@vue/test-utils' {
export function mount<T extends ComponentPublicInstanceConstructor>(
originalComponent: T,
options?: ThisTypedMountOptions<Vue>
): Wrapper<Vue>;
} |
@mohanyin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
Hi!
I doing this vuejs/create-vue#408
type definition not work with Vue 2.7.16
Steps to reproduce
pnpm i
pnpm run type-check
Expected behaviour
worked
Actual behaviour
not worked
Possible Solution
I try install
@vue/[email protected]
. but it only work with Vue 3. see vuejs/test-utils#2289so, That's why I came here.
The text was updated successfully, but these errors were encountered: