dillon1000/react
Commit
Browse files 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
Changed paths3 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…