UNPKG

610 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7/// <reference types="node" />
8import { EventEmitter } from 'events';
9declare type State = {
10 interrupted: boolean;
11};
12export default class TestWatcher extends EventEmitter {
13 state: State;
14 private _isWatchMode;
15 constructor({ isWatchMode }: {
16 isWatchMode: boolean;
17 });
18 setState(state: State): void;
19 isInterrupted(): boolean;
20 isWatchMode(): boolean;
21}
22export {};