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