dillon1000/react
Commit
Browse files 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
Changed paths2 files
First-parent comparisonsrc/renderers/shared/shared/event/EventPluginRegistry.js ModifiedM src/renderers/shared/shared/event/__tests__/EventPluginRegistry-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…