UNPKG

@testing-library/react-native

Version:

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

11 lines (10 loc) 357 B
export interface EventEntry { name: string; payload: any; } export declare function createEventLogger(): { events: EventEntry[]; logEvent: (name: string) => (event: unknown) => void; }; export declare function getEventsNames(events: EventEntry[]): string[]; export declare function lastEventPayload(events: EventEntry[], name: string): any;