UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

20 lines (19 loc) 751 B
import type { TestInstance, TestNode } from 'test-renderer'; /** * Checks if the given element is a host element. * @param node The element to check. */ export declare function isTestInstance(node?: TestNode | null): node is TestInstance; export declare function isInstanceMounted(instance: TestInstance): boolean; /** * Returns host siblings for given element. * @param instance The element start traversing from. */ export declare function getInstanceSiblings(instance: TestInstance): TestInstance[]; /** * Returns the container element of the tree. * * @param instance The element start traversing from. * @returns The container element of the tree. */ export declare function getContainerInstance(instance: TestInstance): TestInstance;