@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
7 lines (6 loc) • 327 B
TypeScript
import type { ReactTestInstance } from 'react-test-renderer';
import type { TextMatch, TextMatchOptions } from '../matches';
export declare function toHaveTextContent(this: jest.MatcherContext, element: ReactTestInstance, expectedText: TextMatch, options?: TextMatchOptions): {
pass: boolean;
message: () => string;
};