nodeModulesPaths.d.ts 556 B

123456789101112131415
  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. * Adapted from: https://github.com/substack/node-resolve
  8. */
  9. import type { Config } from '@jest/types';
  10. declare type NodeModulesPathsOptions = {
  11. moduleDirectory?: Array<string>;
  12. paths?: Array<Config.Path>;
  13. };
  14. export default function nodeModulesPaths(basedir: Config.Path, options: NodeModulesPathsOptions): Array<Config.Path>;
  15. export {};