UNPKG

931 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 */
7import type { AggregatedResult, AssertionLocation } from '@jest/test-result';
8import type { Config } from '@jest/types';
9import { BaseWatchPlugin, JestHookSubscriber, UsageData } from 'jest-watcher';
10declare class UpdateSnapshotInteractivePlugin extends BaseWatchPlugin {
11 private _snapshotInteractiveMode;
12 private _failedSnapshotTestAssertions;
13 isInternal: true;
14 getFailedSnapshotTestAssertions(testResults: AggregatedResult): Array<AssertionLocation>;
15 apply(hooks: JestHookSubscriber): void;
16 onKey(key: string): void;
17 run(_globalConfig: Config.GlobalConfig, updateConfigAndRun: Function): Promise<void>;
18 getUsageInfo(): UsageData | null;
19}
20export default UpdateSnapshotInteractivePlugin;