Skip to content

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

Closed
@aholzner

Description

@aholzner

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions