MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / isTestInstance

Function isTestInstance

src/helpers/component-tree.ts:9–11  ·  view source on GitHub ↗
(node?: TestNode | null)

Source from the content-addressed store, hash-verified

7 * @param node The element to check.
8 */
9export function isTestInstance(node?: TestNode | null): node is TestInstance {
10 return typeof node !== 'string' && typeof node?.type === 'string';
11}
12
13export function isInstanceMounted(instance: TestInstance) {
14 return getContainerInstance(instance) === screen.container;

Callers 5

computeAriaLabelFunction · 0.90
pressFunction · 0.90
longPressFunction · 0.90
checkHostElementFunction · 0.90
toBeEmptyElementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…