utils.d.ts 1.1 KB

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 { Config } from '@jest/types';
  8. import { AggregatedResult } from '@jest/test-result';
  9. import { SummaryOptions } from './types';
  10. export declare const printDisplayName: (config: Config.ProjectConfig) => string;
  11. export declare const trimAndFormatPath: (pad: number, config: Config.GlobalConfig | Config.ProjectConfig, testPath: string, columns: number) => string;
  12. export declare const formatTestPath: (config: Config.GlobalConfig | Config.ProjectConfig, testPath: string) => string;
  13. export declare const relativePath: (config: Config.GlobalConfig | Config.ProjectConfig, testPath: string) => {
  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;
  19. //# sourceMappingURL=utils.d.ts.map