UNPKG

834 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 type { Config } from '@jest/types';
9import { BaseWatchPlugin, JestHookSubscriber, UpdateConfigCallback, UsageData } from 'jest-watcher';
10declare class UpdateSnapshotsPlugin extends BaseWatchPlugin {
11 private _hasSnapshotFailure;
12 isInternal: true;
13 constructor(options: {
14 stdin: NodeJS.ReadStream;
15 stdout: NodeJS.WriteStream;
16 });
17 run(_globalConfig: Config.GlobalConfig, updateConfigAndRun: UpdateConfigCallback): Promise<boolean>;
18 apply(hooks: JestHookSubscriber): void;
19 getUsageInfo(): UsageData | null;
20}
21export default UpdateSnapshotsPlugin;