Skip to content

How to test an object property of a child functional component (inside a non-functional component)? #1507

Open
@matanshukry

Description

@matanshukry

Version

1.0.0-beta.33

Reproduction link

https://codesandbox.io/s/vue-template-yy6q9

Steps to reproduce

  1. Create a component that uses a functional component with a property of type object
  2. Use said functional component in template, and pass the property as an object
  3. (3.A) Try and use the .props() method - can't use it since the child component is a functional component
  4. (3.B) Try and use the .attributes() method. It will return the object as string "[object Object]", so you can't test the actual value of it.

What is expected?

To have a way to test the value passed as an object property to a child functional component

What is actually happening?

There is no way to test the value passed as an object property to a child functional component

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions