UNPKG

@testing-library/react-native

Version:

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

10 lines (9 loc) 359 B
import type { TestInstance } from 'test-renderer'; /** * Basic dispatch event function used by User Event module. * * @param instance instance to trigger event on * @param eventName name of the event * @param event event payload(s) */ export declare function dispatchEvent(instance: TestInstance, eventName: string, ...event: unknown[]): Promise<void>;