Skip to content
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

Feature request: mount should accept a partial that describes local properties on component #2366

Closed
cory-baker opened this issue Mar 11, 2024 · 1 comment

Comments

@cory-baker
Copy link

cory-baker commented Mar 11, 2024

Is your feature request related to a problem? Please describe.
I'd like my tests to be typesafe.

Describe the solution you'd like
The option to pass a partial to describe component data
mount<Component<{...myComponentDataTypes}>>
or
mount<Component, {...myComponentDataTypes}>

Describe alternatives you've considered

Additional context
image

@cexbrayat
Copy link
Member

Hi @cory-baker

I think you are running into #972 which needs some changes in Vue itself to have proper types.

In the meantime, you need to manually cast vm as showed in the issue.

I'm going to close this one as a duplicate, feel free to ping me with a repro if this is not the case.

@cexbrayat cexbrayat closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants