utils.d.ts 1.1 KB

123456789101112131415161718
  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 type { SummaryOptions } from './types';
  10. export declare const printDisplayName: (config: Config.ProjectConfig) => string;
  11. export declare const trimAndFormatPath: (pad: number, config: Config.ProjectConfig | Config.GlobalConfig, testPath: Config.Path, columns: number) => string;
  12. export declare const formatTestPath: (config: Config.GlobalConfig | Config.ProjectConfig, testPath: Config.Path) => string;
  13. export declare const relativePath: (config: Config.GlobalConfig | Config.ProjectConfig, testPath: Config.Path) => {
  14. basename: string;
  15. dirname: string;
  16. };
  17. export declare const getSummary: (aggregatedResults: AggregatedResult, options?: SummaryOptions | undefined) => string;
  18. export declare const wrapAnsiString: (string: string, terminalWidth: number) => string;