1 | import type { Workers } from '@wdio/types';
|
2 | import type { RunCommandArguments, ValueKeyIteratee } from './types.js';
|
3 | export 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 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | getWorkers(predicate?: ValueKeyIteratee<Workers.Worker> | null | undefined, includeBusyWorker?: boolean): Workers.WorkerPool;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | run(params?: Partial<RunCommandArguments>): void;
|
28 | cleanUp(): void;
|
29 | }
|
30 |
|
\ | No newline at end of file |