Skip to content

Request for wrappers for React Testing Library #2230

@jfontsaballs

Description

@jfontsaballs

Is your feature request related to a problem? Please describe.
I have a React app developed in Kotlin using kotlin-wrappers. I've started to have some React components with complicated logic and I would like to unit test them.

Describe the solution you'd like
I would like wrappers for React Testing Library. It seems to be the recommended approach to test React components.

Describe alternatives you've considered

  • Enzyme: the library seems to be dead and not compatible with current React versions.

  • kotlin-react-dom-test-utils: in its own documentation it recommends the use of the React Testing Library due to better developer ergonomics.

Additional context
#67 #325 #344

react.dev docs contain little to no information on testing.


Additionally, I would greatly appreciate any suggestion or example on how to proceed with testing using what is available right now.

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