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 BaseReporter from './BaseReporter';
|
10 | import type { ReporterOnStartOptions, Test } from './types';
|
11 | export default class DefaultReporter extends BaseReporter {
|
12 | private _clear;
|
13 | private _err;
|
14 | protected _globalConfig: Config.GlobalConfig;
|
15 | private _out;
|
16 | private _status;
|
17 | private _bufferedOutput;
|
18 | static readonly filename: string;
|
19 | constructor(globalConfig: Config.GlobalConfig);
|
20 | private _wrapStdio;
|
21 | forceFlushBufferedOutput(): void;
|
22 | private _clearStatus;
|
23 | private _printStatus;
|
24 | onRunStart(aggregatedResults: AggregatedResult, options: ReporterOnStartOptions): void;
|
25 | onTestStart(test: Test): void;
|
26 | onTestCaseResult(test: Test, testCaseResult: TestCaseResult): void;
|
27 | onRunComplete(): void;
|
28 | onTestResult(test: Test, testResult: TestResult, aggregatedResults: AggregatedResult): void;
|
29 | testFinished(config: Config.ProjectConfig, testResult: TestResult, aggregatedResults: AggregatedResult): void;
|
30 | printTestFileHeader(_testPath: Config.Path, config: Config.ProjectConfig, result: TestResult): void;
|
31 | printTestFileFailureMessage(_testPath: Config.Path, _config: Config.ProjectConfig, result: TestResult): void;
|
32 | }
|