Skip to content

Fix Testing Library example #1904

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

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Fix Testing Library example #1904

merged 1 commit into from
Aug 15, 2022

Conversation

NoelDeMartin
Copy link
Contributor

Description of Problem

I think the current example is wrong. It seems to render the component twice and uses different variable names for it (Component vs Stepper).

Proposed Solution

I guess the proper solution is to refer to the component as Stepper, like in the rest of the examples, and render only once.

@netlify
Copy link

netlify bot commented Aug 10, 2022

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 76453c6
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/62f38f5c9a0f5800084176cc
😎 Deploy Preview https://deploy-preview-1904--vuejs.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.

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

The change looks good to me, but I have limited experience with this library, so I'll hold off merging for now so other people can take a look.

@yyx990803 yyx990803 merged commit ac20109 into vuejs:main Aug 15, 2022
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 16, 2022
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 22, 2022
* Add a note about `flush: 'sync'`, with links from elsewhere (#1895)

* Update the note about Vue Router and lazy loading (#1896)

* Fix Testing Library example (#1904)

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
Co-authored-by: Noel De Martin <noel@noeldemartin.com>
edimitchel referenced this pull request in vuejs-translations/docs-fr Aug 22, 2022
* Add a note about `flush: 'sync'`, with links from elsewhere (#1895)

* Update the note about Vue Router and lazy loading (#1896)

* Fix Testing Library example (#1904)

* 📝 Composition api is available in Vue 2.7 (#1909)

Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
Co-authored-by: Noel De Martin <noel@noeldemartin.com>
Co-authored-by: Viki Val <viktorko99@gmail.com>
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.

3 participants