-
Notifications
You must be signed in to change notification settings - Fork 663
vue-test-utils: allow false as a component stub value
#1231
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
Conversation
packages/test-utils/types/index.d.ts
Outdated
| */ | ||
| type Stubs = { | ||
| [key: string]: Component | string | true | ||
| [key: string]: Component | string | true | false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [key: string]: Component | string | true | false | |
| [key: string]: Component | string | boolean |
|
Can you also update the type file in packages/server-test-utils/types/index.d.ts? |
|
done. |
|
Hi @garyo, there's another types file for the |
Updated types/index.d.ts to allow false to be passed as a component stub value in mount or shallowMount. `false` in this case means don't use a stub for the given component. Also updated server-test-utils.
|
Sorry, I had that fix queued up, just forgot to add it! Here you go. This time for sure. :-) |
|
Thanks :) |
|
Thanks again! Cheers! 💚 |
|
@eddyerburgh when this fix will be available in public release? |
|
By September 15 latest |
Updated types/index.d.ts to allow false to be passed as a component stub value
in mount or shallowMount.
falsein this case means don't use a stub for thegiven component.