FailedTestsInteractiveMode.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 type { AggregatedResult, AssertionLocation } from '@jest/test-result';
  9. declare type RunnerUpdateFunction = (failure?: AssertionLocation) => void;
  10. export default class FailedTestsInteractiveMode {
  11. private _pipe;
  12. private _isActive;
  13. private _countPaths;
  14. private _skippedNum;
  15. private _testAssertions;
  16. private _updateTestRunnerConfig?;
  17. constructor(_pipe: NodeJS.WritableStream);
  18. isActive(): boolean;
  19. put(key: string): void;
  20. run(failedTestAssertions: Array<AssertionLocation>, updateConfig: RunnerUpdateFunction): void;
  21. updateWithResults(results: AggregatedResult): void;
  22. private _clearTestSummary;
  23. private _drawUIDone;
  24. private _drawUIDoneWithSkipped;
  25. private _drawUIProgress;
  26. private _drawUIOverlay;
  27. private _run;
  28. private abort;
  29. private restart;
  30. }
  31. export {};