Skip to content

Error when test rendering component using React Test Library #112

@wisnuvb

Description

@wisnuvb

I run the test (RTL) getting error TypeError: Cannot read properties of undefined (reading 'prototype') while rendering component.

Screen Shot 2022-09-28 at 15 21 58

I've tried looking everywhere but can't find a solution. I post here to get enlightenment on how to test this component. The screenshot above shows that I immediately called the component, although not directly, the result was still an error. Thanks 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions