Options supported by waitFor and waitUntil.

interface WaitOptions {
    interval?: number;
    maxChecks?: number;
    timeout?: number;
}

Properties

interval?: number

The interval in milliseconds to check the resolver. Default is 5ms.

maxChecks?: number

The maximum number of checks to perform.

timeout?: number

The maximum time to wait for the resolver to be fulfilled. Default is 150ms.