UNPKG

1.39 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 { Config } from '@jest/types';
8import * as constants from './constants';
9export { resolveTestEnvironment as getTestEnvironment } from 'jest-resolve';
10export { isJSONString } from './utils';
11export { default as normalize } from './normalize';
12export { default as deprecationEntries } from './Deprecated';
13export { replaceRootDirInPath } from './utils';
14export { default as defaults } from './Defaults';
15export { default as descriptions } from './Descriptions';
16export { constants };
17declare type ReadConfig = {
18 configPath: Config.Path | null | undefined;
19 globalConfig: Config.GlobalConfig;
20 hasDeprecationWarnings: boolean;
21 projectConfig: Config.ProjectConfig;
22};
23export declare function readConfig(argv: Config.Argv, packageRootOrConfig: Config.Path | Config.InitialOptions, skipArgvConfigOption?: boolean, parentConfigDirname?: Config.Path | null, projectIndex?: number, skipMultipleConfigWarning?: boolean): Promise<ReadConfig>;
24export declare function readConfigs(argv: Config.Argv, projectPaths: Array<Config.Path>): Promise<{
25 globalConfig: Config.GlobalConfig;
26 configs: Array<Config.ProjectConfig>;
27 hasDeprecationWarnings: boolean;
28}>;