VerboseReporter.d.ts 1.2 KB

123456789101112131415161718192021222324252627
  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. /// <reference types="node" />
  8. import type { AggregatedResult, AssertionResult, Suite, TestResult } from '@jest/test-result';
  9. import type { Config } from '@jest/types';
  10. import DefaultReporter from './DefaultReporter';
  11. import type { Test } from './types';
  12. export default class VerboseReporter extends DefaultReporter {
  13. protected _globalConfig: Config.GlobalConfig;
  14. static readonly filename: string;
  15. constructor(globalConfig: Config.GlobalConfig);
  16. protected __wrapStdio(stream: NodeJS.WritableStream | NodeJS.WriteStream): void;
  17. static filterTestResults(testResults: Array<AssertionResult>): Array<AssertionResult>;
  18. static groupTestsBySuites(testResults: Array<AssertionResult>): Suite;
  19. onTestResult(test: Test, result: TestResult, aggregatedResults: AggregatedResult): void;
  20. private _logTestResults;
  21. private _logSuite;
  22. private _getIcon;
  23. private _logTest;
  24. private _logTests;
  25. private _logTodoOrPendingTest;
  26. private _logLine;
  27. }