保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 26fa49f4b0aa658d65a21fffe828f39e78302573
PAMapp/node_modules/jest/node_modules/jest-cli/build/init/index.js
@@ -3,7 +3,7 @@
Object.defineProperty(exports, '__esModule', {
  value: true
});
exports.default = void 0;
exports.default = init;
function path() {
  const data = _interopRequireWildcard(require('path'));
@@ -138,9 +138,7 @@
const getConfigFilename = ext => JEST_CONFIG_BASE_NAME + ext;
var _default = async (
  rootDir = (0, _jestUtil().tryRealpath)(process.cwd())
) => {
async function init(rootDir = (0, _jestUtil().tryRealpath)(process.cwd())) {
  // prerequisite checks
  const projectPackageJsonPath = path().join(rootDir, PACKAGE_JSON);
@@ -195,7 +193,7 @@
  console.log();
  console.log(
    _chalk().default.underline(
      `The following questions will help Jest to create a suitable configuration for your project\n`
      'The following questions will help Jest to create a suitable configuration for your project\n'
    )
  );
  let promptAborted = false; // @ts-expect-error: Return type cannot be object - faulty typings
@@ -245,6 +243,4 @@
  console.log(
    `📝  Configuration file created at ${_chalk().default.cyan(jestConfigPath)}`
  );
};
exports.default = _default;
}