1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { AggregatedResult, TestCaseResult, TestResult } from '@jest/test-result';
|
8 | import type { Context, Reporter, ReporterOnStartOptions, Test } from './types';
|
9 | export default class BaseReporter implements Reporter {
|
10 | private _error?;
|
11 | log(message: string): void;
|
12 | onRunStart(_results?: AggregatedResult, _options?: ReporterOnStartOptions): void;
|
13 | onTestCaseResult(_test: Test, _testCaseResult: TestCaseResult): void;
|
14 | onTestResult(_test?: Test, _testResult?: TestResult, _results?: AggregatedResult): void;
|
15 | onTestStart(_test?: Test): void;
|
16 | onRunComplete(_contexts?: Set<Context>, _aggregatedResults?: AggregatedResult): Promise<void> | void;
|
17 | protected _setError(error: Error): void;
|
18 | getLastError(): Error | undefined;
|
19 | }
|