@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
16 lines (15 loc) • 859 B
TypeScript
import type { TestInstance } from 'test-renderer';
import type { TextMatch, TextMatchOptions } from '../matches';
import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './make-queries';
import type { CommonQueryOptions } from './options';
type ByTestIdOptions = CommonQueryOptions & TextMatchOptions;
export type ByTestIdQueries = {
getByTestId: GetByQuery<TextMatch, ByTestIdOptions>;
getAllByTestId: GetAllByQuery<TextMatch, ByTestIdOptions>;
queryByTestId: QueryByQuery<TextMatch, ByTestIdOptions>;
queryAllByTestId: QueryAllByQuery<TextMatch, ByTestIdOptions>;
findByTestId: FindByQuery<TextMatch, ByTestIdOptions>;
findAllByTestId: FindAllByQuery<TextMatch, ByTestIdOptions>;
};
export declare const bindByTestIdQueries: (instance: TestInstance) => ByTestIdQueries;
export {};