Skip to content

Child components always return true even when they are not in the vm #744

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

Closed
aholzner opened this issue Jun 21, 2018 · 0 comments
Closed
Assignees
Labels

Comments

@aholzner
Copy link

aholzner commented Jun 21, 2018

Version

1.0.0-beta.19

Reproduction link

https://codesandbox.io/s/5m3jqzlypn

Steps to reproduce

Using Jest and Vue test utils v19

Create a component like in the provided link, and include a child component. The child component should be shown based on a condition that is passed to the component. Create a test and pass the component a prop and give the prop value false, and then try to check if the component exists and it will return true.

What is expected?

The test should return false.

What is actually happening?

It is returning a list of rendered components and giving true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants