packages/ant-cli/spec/bin/ant.spec.js
async function _expectSuccessMessage(args, ...successMessages) {
  const { stdout, stderr } = await exec(getAntCommand(args));
  for (const successMessage of successMessages) {
    expect(stdout).toContain(successMessage);
  }
  expect(stderr).toEqual('');
}
async function _expectSuccessMessage(args, ...successMessages) {
  const { stdout, stderr } = await exec(getAntCommand(args));
  for (const successMessage of successMessages) {
    expect(stdout).toContain(successMessage);
  }
  expect(stderr).toEqual('');
}
async function _expectSuccessMessage ( args , ... successMessages ) { const { stdout , stderr } = await exec ( getAntCommand ( args ) ) ; for ( const successMessage of successMessages ) { expect ( stdout ) . toContain ( successMessage ) ; } expect ( stderr ) . toEqual ( '' ) ; }
Helper function to run the CLI command with args and check the expected CLI
success message.
@param {String} args The args to be sent to the CLI command.
@param {String|Array<String>} successMessages The expected success messages.
@async
@private
Helper function to run the CLI command with args and check the expected CLI success message .