dillon1000/react

Commit

Add invariant check for composite components to event simulation test utils (#10414)

* Add invariant check for composite components to event simulation test utils

* Change simulate variable names from domComponentOrNode to domNode, language for new simulate invariant, and add space in existing invariant

* Update test name

* Update test for invariant with shallow rendering

* Update text for existing invariant and change comments to reflect change to only domNode usage

* Update text for existing invariant to reflect syntax with new invariant

* Update ReactTestUtilsEntry.js

* Update React element invariant to reflect usage with shallow rendering

* Move Simulate-related tests into Simulate block

* Run prettier
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/test/ReactTestUtilsEntry.js ModifiedM src/renderers/dom/test/__tests__/ReactTestUtils-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…