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