We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8429b7b commit b5816c4Copy full SHA for b5816c4
src/helpers/component-tree.ts
@@ -13,7 +13,7 @@ export function isHostElement(element?: ReactTestInstance | null): element is Ho
13
return typeof element?.type === 'string';
14
}
15
16
-export function isElementMounted(element: ReactTestInstance | null) {
+export function isElementMounted(element: ReactTestInstance) {
17
return getUnsafeRootElement(element) === screen.UNSAFE_root;
18
19
0 commit comments