1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Reporter, ReporterOnStartOptions } from '@jest/reporters';
|
8 | import type { AggregatedResult, Test, TestCaseResult, TestResult } from '@jest/test-result';
|
9 | import type { Context } from 'jest-runtime';
|
10 | export default class ReporterDispatcher {
|
11 | private _reporters;
|
12 | constructor();
|
13 | register(reporter: Reporter): void;
|
14 | unregister(ReporterClass: Function): void;
|
15 | onTestFileResult(test: Test, testResult: TestResult, results: AggregatedResult): Promise<void>;
|
16 | onTestFileStart(test: Test): Promise<void>;
|
17 | onRunStart(results: AggregatedResult, options: ReporterOnStartOptions): Promise<void>;
|
18 | onTestCaseResult(test: Test, testCaseResult: TestCaseResult): Promise<void>;
|
19 | onRunComplete(contexts: Set<Context>, results: AggregatedResult): Promise<void>;
|
20 | getErrors(): Array<Error>;
|
21 | hasErrors(): boolean;
|
22 | }
|