createProcess = (cwd, args, options) => {
    const { nodeOptions = [] } = options;
    const processExecutor = nodeOptions.length ? execaNode : execa;

    return processExecutor(CLI_PATH, args, {
      cwd: path.resolve(cwd),
      reject: false,
      stdio: ENABLE_LOG_COMPILATION ? "inherit" : "pipe",
      maxBuffer: Infinity,
      env: { WEBPACK_CLI_HELP_WIDTH: 1024 },
      ...options,
    });
  }
Webpack CLI test runner.

@param {string} cwd The path to folder that contains test
@param {Array<string>} args Array of arguments
@param {Object<string, any>} options Options for tests
@returns {Promise}