dillon1000/react
Commit
Browse files Rewrite tests that depend on propTypes warnings (#28325)
In preparation for https://github.com/facebook/react/pull/28207. These tests aren't actually testing propTypes, they just use them to verify we can display a meaningful component name. We've mostly moved away from warnings that display component names directly in favor of component stacks. So let's just replace these with tests asserting the component names show up in stacks.
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/__tests__/ReactMemo-test.js ModifiedM packages/react/src/__tests__/forwardRef-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…