We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get TypeScript errors when trying to find a component that has a generic with findComponent.
findComponent
I have made a minimal reproduction. Here a small component is created with a generic, called Select.vue. I use the Select component in App.vue.
Select.vue
App.vue
app.spec.ts
npm run type-check
I think the two errors are related. They are only thrown if the component has a generic.
It should not throw these errors. The findComponent for the component with the generic, should return a VueWrapper.
VueWrapper
It somehow returns a WrapperLike, instead of the expected VueWrapper.
WrapperLike
The text was updated successfully, but these errors were encountered:
Maybe it is the same issue as described in #2254, but I wasn't sure.
Sorry, something went wrong.
@thimonwentink Thanks for the repro.
@pikax What do you think about this?
@johnsoncodehk should be able to help more on this specific issue
No branches or pull requests
Describe the bug
I get TypeScript errors when trying to find a component that has a generic with
findComponent
.Steps to reproduce
I have made a minimal reproduction. Here a small component is created with a generic, called
Select.vue
. I use the Select component inApp.vue
.app.spec.ts
. This is the test file where the TypeScript errors occur.npm run type-check
in the terminal below the file editor.I think the two errors are related. They are only thrown if the component has a generic.
Expected behaviour
It should not throw these errors. The
findComponent
for the component with the generic, should return aVueWrapper
.Actual behaviour
It somehow returns a
WrapperLike
, instead of the expectedVueWrapper
.The text was updated successfully, but these errors were encountered: