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 47c1509 commit 74a3e77Copy full SHA for 74a3e77
packages/react-test-renderer/src/ReactTestRenderer.js
@@ -347,7 +347,7 @@ class ReactTestInstance {
347
findByType(type: any): ReactTestInstance {
348
return expectOne(
349
this.findAllByType(type, {deep: false}),
350
- `with node type: "${getComponentName(type)}"`,
+ `with node type: "${getComponentName(type) || 'Unknown'}"`,
351
);
352
}
353
0 commit comments