UNPKG

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