Skip to content

Functional component mount().element equals #comment #114

@rssfrncs

Description

@rssfrncs

I have a functional component which accepts a "data" prop. This props is not required and by default returns an empty array,

image

I have the following basic test to assert that an is rendered,

image

When i run the test it fails with the following message,

image

When I change the component to not being functional, the same test passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions