UNPKG

@testing-library/react-native

Version:

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

11 lines (10 loc) 523 B
import type { TestInstance } from 'test-renderer'; import type { TextMatch, TextMatchOptions } from '../../matches'; /** * Matches the given instance's text content against string or regex matcher. * * @param instance - Instance which text content will be matched * @param text - The string or regex to match. * @returns - Whether the instance's text content matches the given string or regex. */ export declare function matchTextContent(instance: TestInstance, text: TextMatch, options?: TextMatchOptions): boolean;