保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
PAMapp/node_modules/jest-config/build/resolveConfigPath.js
@@ -3,7 +3,7 @@
Object.defineProperty(exports, '__esModule', {
  value: true
});
exports.default = void 0;
exports.default = resolveConfigPath;
function path() {
  const data = _interopRequireWildcard(require('path'));
@@ -104,7 +104,11 @@
const getConfigFilename = ext => _constants.JEST_CONFIG_BASE_NAME + ext;
var _default = (pathToResolve, cwd, skipMultipleConfigWarning = false) => {
function resolveConfigPath(
  pathToResolve,
  cwd,
  skipMultipleConfigWarning = false
) {
  if (!path().isAbsolute(cwd)) {
    throw new Error(`"cwd" must be an absolute path. cwd: ${cwd}`);
  }
@@ -120,7 +124,7 @@
  // e.g.
  // With a directory structure like this:
  //   my_project/
  //     packcage.json
  //     package.json
  //
  // Passing a `my_project/some_directory_that_doesnt_exist` as a project
  // name will resolve into a (possibly empty) `my_project/package.json` and
@@ -128,7 +132,7 @@
  if (!fs().existsSync(absolutePath)) {
    throw new Error(
      `Can't find a root directory while resolving a config file path.\n` +
      "Can't find a root directory while resolving a config file path.\n" +
        `Provided path to resolve: ${pathToResolve}\n` +
        `cwd: ${cwd}`
    );
@@ -140,9 +144,7 @@
    cwd,
    skipMultipleConfigWarning
  );
};
exports.default = _default;
}
const resolveConfigPathByTraversing = (
  pathToResolve,