SummaryReporter.d.ts 915 B

12345678910111213141516171819202122
  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 type { AggregatedResult } from '@jest/test-result';
  8. import type { Config } from '@jest/types';
  9. import BaseReporter from './BaseReporter';
  10. import type { Context, ReporterOnStartOptions } from './types';
  11. export default class SummaryReporter extends BaseReporter {
  12. private _estimatedTime;
  13. private _globalConfig;
  14. static readonly filename: string;
  15. constructor(globalConfig: Config.GlobalConfig);
  16. private _write;
  17. onRunStart(aggregatedResults: AggregatedResult, options: ReporterOnStartOptions): void;
  18. onRunComplete(contexts: Set<Context>, aggregatedResults: AggregatedResult): void;
  19. private _printSnapshotSummary;
  20. private _printSummary;
  21. private _getTestSummary;
  22. }