index.d.ts 1.2 KB

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