UNPKG

@wdio/local-runner

Version:
37 lines • 1.32 kB
import { WritableStreamBuffer } from 'stream-buffers'; import type { Workers } from '@wdio/types'; import WorkerInstance from './worker.js'; export type { WorkerInstance }; export interface RunArgs extends Workers.WorkerRunPayload { command: string; args: Workers.WorkerMessageArgs; cid: string; } export default class LocalRunner { private _options; protected config: WebdriverIO.Config; workerPool: Record<string, WorkerInstance>; private daemon; stdout: WritableStreamBuffer; stderr: WritableStreamBuffer; constructor(_options: never, config: WebdriverIO.Config); /** * Runs before any service `onPrepare`, so drivers those services start inherit the display. */ initialize(): Promise<void>; getWorkerCount(): number; run({ command, args, ...workerOptions }: RunArgs): Promise<WorkerInstance>; /** * shutdown all worker processes * * @return {Promise} resolves when all worker have been shutdown or * a timeout was reached */ shutdown(): Promise<boolean>; /** * Stop the display daemon. Runs after `onComplete`, so a driver or app a * service started in `onPrepare` still has its display while it is torn down. */ dispose(): Promise<void>; } //# sourceMappingURL=index.d.ts.map