index.d.ts 1.7 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. import getResultHeader from './getResultHeader';
  8. export type { Config } from '@jest/types';
  9. export type { AggregatedResult, SnapshotSummary, TestResult, } from '@jest/test-result';
  10. export { default as BaseReporter } from './BaseReporter';
  11. export { default as CoverageReporter } from './CoverageReporter';
  12. export { default as DefaultReporter } from './DefaultReporter';
  13. export { default as NotifyReporter } from './NotifyReporter';
  14. export { default as SummaryReporter } from './SummaryReporter';
  15. export { default as VerboseReporter } from './VerboseReporter';
  16. export type { Context, Reporter, ReporterOnStartOptions, SummaryOptions, Test, } from './types';
  17. export declare const utils: {
  18. formatTestPath: (config: import("@jest/types/build/Config").ProjectConfig | import("@jest/types/build/Config").GlobalConfig, testPath: string) => string;
  19. getResultHeader: typeof getResultHeader;
  20. getSummary: (aggregatedResults: import("@jest/test-result").AggregatedResult, options?: import("./types").SummaryOptions | undefined) => string;
  21. printDisplayName: (config: import("@jest/types/build/Config").ProjectConfig) => string;
  22. relativePath: (config: import("@jest/types/build/Config").ProjectConfig | import("@jest/types/build/Config").GlobalConfig, testPath: string) => {
  23. basename: string;
  24. dirname: string;
  25. };
  26. trimAndFormatPath: (pad: number, config: import("@jest/types/build/Config").ProjectConfig | import("@jest/types/build/Config").GlobalConfig, testPath: string, columns: number) => string;
  27. };