dillon1000/react

Commit

Remove _resetEventPlugins, use jest.resetModuleRegistry (#9111)

* Move EventPluginRegistry._resetEventPlugins to DEV

This is not called during runtime at all and is only using in internal unit tests. Despite that, its currently being included in production builds. This change makes it so its only defined in DEV, which might even be too much (we can maybe inject it in our unit tests to avoid defining it at all in EventPluginRegistry)

* Remove _resetEventsPlugin, use resetModuleRegistry
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/shared/shared/event/EventPluginRegistry.js ModifiedM src/renderers/shared/shared/event/__tests__/EventPluginRegistry-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…