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

shallowMount does not correctly pass refs for functional components #1292

Closed
xanf opened this issue Aug 14, 2019 · 0 comments · Fixed by #1293
Closed

shallowMount does not correctly pass refs for functional components #1292

xanf opened this issue Aug 14, 2019 · 0 comments · Fixed by #1293
Labels

Comments

@xanf
Copy link
Contributor

xanf commented Aug 14, 2019

Version

1.0.0-beta.29

Reproduction link

https://codesandbox.io/s/shallowmount-functional-refs-test-38fre

(see tests tab)

Steps to reproduce

  1. Create functional component which passes ref to its direct child
  2. Try to shallowMount component, with ref to functional component, created on step 1

What is expected?

ref to functional component is valid

What is actually happening?

ref is undefined

xanf added a commit to xanf/vue-test-utils that referenced this issue Aug 14, 2019
xanf added a commit to xanf/vue-test-utils that referenced this issue Aug 14, 2019
@xanf xanf changed the title shallowMount does not correctly passes refs for functional components shallowMount does not correctly pass refs for functional components Aug 14, 2019
@eddyerburgh eddyerburgh added the bug label Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants