UNPKG

@testing-library/react-native

Version:

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

9 lines (8 loc) 305 B
import { ErrorWithStack } from './helpers/errors'; export type WaitForOptions = { timeout?: number; interval?: number; stackTraceError?: ErrorWithStack; onTimeout?: (error: Error) => Error; }; export default function waitFor<T>(expectation: () => T, options?: WaitForOptions): Promise<T>;