/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type { AggregatedResult, TestCaseResult, TestResult } from '@jest/test-result'; import type { Test } from 'jest-runner'; import type { Context } from 'jest-runtime'; import type { Reporter, ReporterOnStartOptions } from '@jest/reporters'; export default class ReporterDispatcher { private _reporters; constructor(); register(reporter: Reporter): void; unregister(ReporterClass: Function): void; onTestFileResult(test: Test, testResult: TestResult, results: AggregatedResult): Promise; onTestFileStart(test: Test): Promise; onRunStart(results: AggregatedResult, options: ReporterOnStartOptions): Promise; onTestCaseResult(test: Test, testCaseResult: TestCaseResult): Promise; onRunComplete(contexts: Set, results: AggregatedResult): Promise; getErrors(): Array; hasErrors(): boolean; }