UNPKG

@testing-library/react-native

Version:

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

8 lines (7 loc) 282 B
/** * Run given async callback with temporarily disabled `act` environment and flushes microtasks queue. * * @param callback Async callback to run * @returns Result of the callback */ export declare function wrapAsync<Result>(callback: () => Promise<Result>): Promise<Result>;