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