Deprecate TestUtils.SimulateNative #11656
Labels
Component: Test Utils
React Core Team
Opened by a member of the React Core Team
Type: Breaking Change
I'm not sure if it was ever intended to be a part of public API.
It's not documented, and its naming is misleading because it actually doesn't simulate a native event (oops!). It only simulates what React would do if it received that native event. It does that in a way that's very tightly coupled to the event system internals which is unfortunate. It is much better if we can educate people how to dispatch actual browser events in tests instead.
I think we should just deprecate it. We've removed most tests relying on it, and can leave a test or two until it can be deleted in the next major.
The text was updated successfully, but these errors were encountered: