UNPKG

@testing-library/react-native

Version:

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

16 lines (15 loc) 912 B
import type { ReactTestInstance } from 'react-test-renderer'; import { TextMatch, TextMatchOptions } from '../matches'; import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './makeQueries'; import { CommonQueryOptions } from './options'; type ByLabelTextOptions = CommonQueryOptions & TextMatchOptions; export type ByLabelTextQueries = { getByLabelText: GetByQuery<TextMatch, ByLabelTextOptions>; getAllByLabelText: GetAllByQuery<TextMatch, ByLabelTextOptions>; queryByLabelText: QueryByQuery<TextMatch, ByLabelTextOptions>; queryAllByLabelText: QueryAllByQuery<TextMatch, ByLabelTextOptions>; findByLabelText: FindByQuery<TextMatch, ByLabelTextOptions>; findAllByLabelText: FindAllByQuery<TextMatch, ByLabelTextOptions>; }; export declare const bindByLabelTextQueries: (instance: ReactTestInstance) => ByLabelTextQueries; export {};