mockirer
v2.0.1
Published
Mock the answers of inquirer prompt questions
Downloads
552
Readme
mockirer
Mock the answers of inquirer prompt questions.
Install
npm install mockirer --save-dev
Usage
const mockirer = require('mockirer');
const inquirer = require('inquirer');
mockirer(inquirer, {
name: 'Cauê'
});
inquirer.prompt([
{
type: 'input',
name: 'name',
message: 'What is your name?',
}
]).then(answers => {
console.log(answers.name); // Cauê
})
License
MIT © Cauê Alves