mockirer

2.0.1 • Public • Published

mockirer Build Status Dependency Status Npm Package Version codecov

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

Package Sidebar

Install

npm i mockirer

Weekly Downloads

8,935

Version

2.0.1

License

MIT

Last publish

Collaborators

  • ceasbz
  • cauealves