waitFor<T>(opts?: WaitForOptions): Promise<T>
Polls until fn returns a truthy value, preserving the last thrown error on timeout.
optional
opts: WaitForOptions
Promise<T>
waitFor<T>(opts?: WaitForOptions): Promise<T>
Polls until fn returns a truthy value, preserving the last thrown error on timeout.
opts: WaitForOptions
Promise<T>
import { waitFor } from "trellis-test/index.ts";