UNPKG

1.31 kBTypeScriptView Raw
1import type { Workers } from '@wdio/types';
2import type { RunCommandArguments, ValueKeyIteratee } from './types.js';
3export default class Watcher {
4 private _configFile;
5 private _args;
6 private _launcher;
7 private _specs;
8 constructor(_configFile: string, _args: Omit<RunCommandArguments, 'configPath'>);
9 watch(): Promise<void>;
10 /**
11 * return file listener callback that calls `run` method
12 * @param {Boolean} [passOnFile=true] if true pass on file change as parameter
13 * @return {Function} chokidar event callback
14 */
15 getFileListener(passOnFile?: boolean): (spec: string) => void[];
16 /**
17 * helper method to get workers from worker pool of wdio runner
18 * @param predicate filter by property value (see lodash.pickBy)
19 * @param includeBusyWorker don't filter out busy worker (default: false)
20 * @return Object with workers, e.g. {'0-0': { ... }}
21 */
22 getWorkers(predicate?: ValueKeyIteratee<Workers.Worker> | null | undefined, includeBusyWorker?: boolean): Workers.WorkerPool;
23 /**
24 * run workers with params
25 * @param params parameters to run the worker with
26 */
27 run(params?: Partial<RunCommandArguments>): void;
28 cleanUp(): void;
29}
30//# sourceMappingURL=watcher.d.ts.map
\No newline at end of file