UNPKG

@testing-library/react-native

Version:

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

16 lines (15 loc) 792 B
import type { ReactTestInstance } from 'react-test-renderer'; import type { PressOptions } from './press'; import type { ScrollToOptions } from './scroll'; import { setup } from './setup'; import type { TypeOptions } from './type'; export { UserEventConfig } from './setup'; export declare const userEvent: { setup: typeof setup; press: (element: ReactTestInstance) => Promise<void>; longPress: (element: ReactTestInstance, options?: PressOptions) => Promise<void>; type: (element: ReactTestInstance, text: string, options?: TypeOptions) => Promise<void>; clear: (element: ReactTestInstance) => Promise<void>; paste: (element: ReactTestInstance, text: string) => Promise<void>; scrollTo: (element: ReactTestInstance, options: ScrollToOptions) => Promise<void>; };