packages/ant-cli/spec/bin/ant.spec.js
async function _expectPackageVersion(args) {
  const packageVersion = require(
    path.resolve(__dirname, '../../package.json')
  ).version;
  await _expectSuccessMessage(args, `${packageVersion}\n`);
}
async function _expectPackageVersion(args) {
  const packageVersion = require(
    path.resolve(__dirname, '../../package.json')
  ).version;
  await _expectSuccessMessage(args, `${packageVersion}\n`);
}
async function _expectPackageVersion ( args ) { const packageVersion = require ( path . resolve ( __dirname , '../../package.json' ) ) . version ; await _expectSuccessMessage ( args , ` ${ packageVersion } \n ` ) ; }
Helper function to run the CLI command with args and check the expected CLI
version.
@param {string} args The args to be sent to the CLI command.
@async
@private
Helper function to run the CLI command with args and check the expected CLI version .