dillon1000/react

Commit

ValidateDOMNesting tests(#11299) (#11742)

*  ValidateDOMNesting tests(#11299)

 * Rewrite tests using only public API.
 * Modified the tests to prevent duplication of code.
 * Code review changes implemented.
 * Removed the .internal from the test file name as
   its now written using public APIs.

* Remove mutation

* Remove unnecessary argument

Now that we pass warnings, we don't need to pass a boolean.

* Move things around a bit, and add component stack assertions
Browse files
Changed paths3 files
First-parent comparison
D packages/react-dom/src/__tests__/validateDOMNesting-test.internal.js DeletedA packages/react-dom/src/__tests__/validateDOMNesting-test.js AddedM packages/react-dom/src/client/validateDOMNesting.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…