SnapshotInteractiveMode.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  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" />
  8. import { AggregatedResult, AssertionLocation } from '@jest/test-result';
  9. export 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. }
  31. //# sourceMappingURL=SnapshotInteractiveMode.d.ts.map