保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/jest-resolve/build/fileWalkers.js
@@ -4,10 +4,10 @@
  value: true
});
exports.clearFsCache = clearFsCache;
exports.readPackageCached = readPackageCached;
exports.findClosestPackageJson = findClosestPackageJson;
exports.isFile = isFile;
exports.isDirectory = isDirectory;
exports.isFile = isFile;
exports.readPackageCached = readPackageCached;
exports.realpathSync = realpathSync;
function _path() {
@@ -114,7 +114,10 @@
  let stat;
  try {
    stat = fs().statSync(path);
    // @ts-expect-error TS2554 - throwIfNoEntry is only available in recent version of node, but inclusion of the option is a backward compatible no-op.
    stat = fs().statSync(path, {
      throwIfNoEntry: false
    });
  } catch (e) {
    if (!(e && (e.code === 'ENOENT' || e.code === 'ENOTDIR'))) {
      throw e;