fileWalkers.d.ts 712 B

1234567891011121314
  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. export declare function clearFsCache(): void;
  9. export declare type PkgJson = Record<string, unknown>;
  10. export declare function readPackageCached(path: Config.Path): PkgJson;
  11. export declare function findClosestPackageJson(start: Config.Path): Config.Path | undefined;
  12. export declare function isFile(file: Config.Path): boolean;
  13. export declare function isDirectory(dir: Config.Path): boolean;
  14. export declare function realpathSync(file: Config.Path): Config.Path;