index.d.ts 1.4 KB

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