UNPKG

poku

Version:

🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.

8 lines (7 loc) 582 B
import type { WaitForExpectedResultOptions, WaitForPortOptions } from '../../@types/wait-for.js'; /** Wait until the defined milliseconds. */ export declare const sleep: (milliseconds: number) => Promise<void>; /** Wait until a result is equal the expected value. */ export declare const waitForExpectedResult: (callback: () => unknown | Promise<unknown>, expectedResult: unknown, options?: WaitForExpectedResultOptions) => Promise<void>; /** Wait until the defined port is active. */ export declare const waitForPort: (port: number, options?: WaitForPortOptions) => Promise<void>;