We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61158e commit 278787bCopy full SHA for 278787b
packages/react-test-renderer/src/ReactTestRenderer.js
@@ -335,7 +335,7 @@ class ReactTestInstance {
335
findByType(type: any): ReactTestInstance {
336
return expectOne(
337
this.findAllByType(type, {deep: false}),
338
- `with node type: "${getComponentName(type)}"`,
+ `with node type: "${getComponentName(type) || 'Unknown'}"`,
339
);
340
}
341
0 commit comments