UNPKG

@testing-library/react-native

Version:

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

11 lines (10 loc) 709 B
import type { TestInstance } from 'test-renderer'; /** * Throws HostElementTypeError if passed instance is not a host instance. * * @param instance TestInstance to check. * @param matcherFn Matcher function calling the check used for formatting error. * @param context Jest matcher context used for formatting error. */ export declare function checkHostElement(instance: TestInstance | null | undefined, matcherFn: jest.CustomMatcher, context: jest.MatcherContext): asserts instance is TestInstance; export declare function formatMessage(matcher: string, expectedLabel: string, expectedValue: string | RegExp | null | undefined, receivedLabel: string, receivedValue: string | null | undefined): string;