dillon1000/react

Commit

react-test-renderer: improve findByType() error message (#17439)

* improve findByType error message

* fix flow typing

* Adding a test for the "Unknown" branch when `getComponentName()` returns a falsy value. The error message in this case not the most descriptive but seems consistent with the `getComponentName(type) || 'Unknown'` pattern seen in multiple places in this code base.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-test-renderer/src/ReactTestRenderer.js ModifiedM packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…