1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { AggregatedResult, TestCaseResult, TestResult } from '@jest/test-result';
|
8 | import type { Config } from '@jest/types';
|
9 | import type { ReporterOnStartOptions, Test } from './types';
|
10 | declare type Cache = {
|
11 | content: string;
|
12 | clear: string;
|
13 | };
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export default class Status {
|
20 | private _cache;
|
21 | private _callback?;
|
22 | private _currentTests;
|
23 | private _currentTestCases;
|
24 | private _done;
|
25 | private _emitScheduled;
|
26 | private _estimatedTime;
|
27 | private _interval?;
|
28 | private _aggregatedResults?;
|
29 | private _showStatus;
|
30 | constructor();
|
31 | onChange(callback: () => void): void;
|
32 | runStarted(aggregatedResults: AggregatedResult, options: ReporterOnStartOptions): void;
|
33 | runFinished(): void;
|
34 | addTestCaseResult(test: Test, testCaseResult: TestCaseResult): void;
|
35 | testStarted(testPath: Config.Path, config: Config.ProjectConfig): void;
|
36 | testFinished(_config: Config.ProjectConfig, testResult: TestResult, aggregatedResults: AggregatedResult): void;
|
37 | get(): Cache;
|
38 | private _emit;
|
39 | private _debouncedEmit;
|
40 | private _tick;
|
41 | }
|
42 | export {};
|