ReactTestUtils.Simulate no longer works as expected in v15.4.0 #8305
Closed
Description
Firstly, congrats on the release :)
With the v15.4.0 update, a couple of our projects tests are failing given the changes to ReactTestUtils.Simulate
as discussed here:
#7642 (comment)
The work-around was to use ReactTestUtils.SimulateNative
- however it's still not entirely clear what the difference between Simulate
and SimulateNative
are? When and why should one be used over the other?
It feels like these docs should be updated to reflect this change:
https://facebook.github.io/react/docs/test-utils.html#simulate
Finally, is there a reason that SimulateNative
does not appear in the docs? I'm concerned that others are going to be caught out by this change also.
Metadata
Assignees
Labels
No labels