1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import type { Config } from '@jest/types';
|
9 | import type { JestHookSubscriber, UpdateConfigCallback, UsageData, WatchPlugin } from './types';
|
10 | declare abstract class BaseWatchPlugin implements WatchPlugin {
|
11 | protected _stdin: NodeJS.ReadStream;
|
12 | protected _stdout: NodeJS.WriteStream;
|
13 | constructor({ stdin, stdout, }: {
|
14 | stdin: NodeJS.ReadStream;
|
15 | stdout: NodeJS.WriteStream;
|
16 | });
|
17 | apply(_hooks: JestHookSubscriber): void;
|
18 | getUsageInfo(_globalConfig: Config.GlobalConfig): UsageData | null;
|
19 | onKey(_key: string): void;
|
20 | run(_globalConfig: Config.GlobalConfig, _updateConfigAndRun: UpdateConfigCallback): Promise<void | boolean>;
|
21 | }
|
22 | export default BaseWatchPlugin;
|