Skip to content

0.2.0 - add logError option, jsdoc type completion for options

Choose a tag to compare

@saurabhdaware saurabhdaware released this 11 Nov 18:26
· 4 commits to main since this release
  • createCommandInterface options now has a jsdoc type support
  • options have default values now
const defaultOptions = {
  typeDelay: 100, // number. delay between each `.type()` call
  logData: false, // boolean. if true, logs the cli command data on terminal
  logError: true, // boolean. if false, won't add cli command errors on terminal
  cwd: process.cwd(), // string. working directory from where your simulated command is executed
  env: undefined // object | undefined. environment variables object if there are any
};
  • Added logError option with default value as true. This option will allow you to turn off errors from your running command (just in case, the error is intended for negative tests)
  • New example in README