UNPKG

@epic-web/app-launcher

Version:

Utility for launching your applications on a per-test basis.

14 lines (13 loc) 400 B
/** * Returns a Promise that resolves when the given port has a process * running on it. If no process is established on the given port * within the timeout window, the returned promise rejects. * * @example * await waitForPort(3000) */ export declare function waitForPort(port: number, options?: { timeout?: number; retryInterval?: number; maxRetries?: number; }): Promise<void>;