dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/__tests__/ReactMemo-test.js ModifiedM packages/react/src/__tests__/forwardRef-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…