JSPM

mockirer

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 361
  • Score
    100M100P100Q91686F
  • License MIT

Mock the answers of inquirer prompt questions

Package Exports

  • mockirer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mockirer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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