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

fix: Add props to stubs for built-in components #1767

Merged
merged 1 commit into from Sep 16, 2022
Merged

fix: Add props to stubs for built-in components #1767

merged 1 commit into from Sep 16, 2022

Conversation

wolfgangwalther
Copy link
Contributor

The stubs for <transition>, <transition-group> and <teleport> don't have any props defined, which currently makes it impossible to test for those to be set correctly.

Took the props to add from https://vuejs.org/api/built-in-components.html.

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 0de4bb4
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/63204da7c0c566000820fa4f
😎 Deploy Preview https://deploy-preview-1767--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit a4aa277
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/63237d09f359c100087e4274
😎 Deploy Preview https://deploy-preview-1767--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

src/stubs.ts Outdated Show resolved Hide resolved
Copy link
Member

@cexbrayat cexbrayat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Collaborator

@freakzlike freakzlike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. Thank you 👍

@cexbrayat
Copy link
Member

@wolfgangwalther The build is failing. Ping me when you managed to fix it, and I'll merge the PR

Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
@wolfgangwalther
Copy link
Contributor Author

wolfgangwalther commented Sep 15, 2022

@wolfgangwalther The build is failing. Ping me when you managed to fix it, and I'll merge the PR

@cexbrayat I don't really know typescript. While this should build now, I'm not sure whether that's a proper fix at all.

@cexbrayat
Copy link
Member

I'll push an additional commit to slighly refactor. thanks @wolfgangwalther !

@cexbrayat cexbrayat merged commit 288d3a5 into vuejs:main Sep 16, 2022
@cexbrayat cexbrayat mentioned this pull request Sep 16, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants