Skip to content

Drop dependency on React's Simulate module #206

Closed
@kentcdodds

Description

@kentcdodds

This code has got to go:

https://github.com/kentcdodds/react-testing-library/blob/fe3b65ca158f0ac088b67b195b678a9428a7a2b5/src/index.js#L62-L68

I'm not sure what is needed, but I suggest that we methodically remove one element from that array, see what breaks, then add some code until it starts working.

It may mean that we continue to monkey-patch fireEvent to support React events properly (because React is a little special). All I really care about is getting rid of the Simulate module. The biggest reason is #129, but also Dan told me we shouldn't use it and it's hacky and I want to get rid of it :)

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