UNPKG

1.08 kBTypeScriptView 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 { AggregatedResult, AssertionLocation } from '@jest/test-result';
9export default class SnapshotInteractiveMode {
10 private _pipe;
11 private _isActive;
12 private _updateTestRunnerConfig;
13 private _testAssertions;
14 private _countPaths;
15 private _skippedNum;
16 constructor(pipe: NodeJS.WritableStream);
17 isActive(): boolean;
18 getSkippedNum(): number;
19 private _clearTestSummary;
20 private _drawUIProgress;
21 private _drawUIDoneWithSkipped;
22 private _drawUIDone;
23 private _drawUIOverlay;
24 put(key: string): void;
25 abort(): void;
26 restart(): void;
27 updateWithResults(results: AggregatedResult): void;
28 private _run;
29 run(failedSnapshotTestAssertions: Array<AssertionLocation>, onConfigChange: (assertion: AssertionLocation | null, shouldUpdateSnapshot: boolean) => unknown): void;
30}