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 cf20384 commit 5d15a8fCopy full SHA for 5d15a8f
src/helpers/component-tree.ts
@@ -4,7 +4,7 @@ import { ReactTestInstance } from 'react-test-renderer';
4
* Checks if the given element is a host element.
5
* @param element The element to check.
6
*/
7
-export function isHostElement(element?: ReactTestInstance | null) {
+export function isHostElement(element?: ReactTestInstance | null): boolean {
8
return typeof element?.type === 'string';
9
}
10
0 commit comments