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.
H
Henry Q. Dineen committed
053347e6bc69de79dfa46bb422868b023851c315
Parent: 4ee592e
Committed by GitHub <noreply@github.com>
on 2/28/2020, 5:55:33 PM