dillon1000/react
Commit
Browse files [TestUtils] Copy type to nativeEvent in Simulate.<eventName> (#6154)
Although it is unreasonable to set every possible property for simulated events, `type` is useful for event handlers that are shared between types and potentially have different behaviors.
Changed paths2 files
First-parent comparisonsrc/test/ReactTestUtils.js ModifiedM src/test/__tests__/ReactTestUtils-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…