base_reporter.d.ts 903 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. import { AggregatedResult, TestResult } from '@jest/test-result';
  8. import { ReporterOnStartOptions, Context, Test, Reporter } 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. onTestResult(_test: Test, _testResult: TestResult, _results: AggregatedResult): void;
  14. onTestStart(_test: Test): void;
  15. onRunComplete(_contexts: Set<Context>, _aggregatedResults: AggregatedResult): Promise<void> | void;
  16. protected _setError(error: Error): void;
  17. getLastError(): Error | undefined;
  18. }
  19. //# sourceMappingURL=base_reporter.d.ts.map