generator-proxyquire-test

0.0.2 • Public • Published

generator-proxyquire-test npm version

My simple tools to generate a boilerplate to write test cases in proxyquire.

Disclaimer: This tools has specific purpose to help my daily jobs, some mechanism maybe not applicable to you.

Installation

First, install Yeoman and generator-proxyquire-test using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-proxyquire-test

Then generate your new project:

yo proxyquire-test

Example

     _-----_     ╭──────────────────────────╮
    |       |    │  Welcome to the supreme  │
    |--(o)--|    │ generator-proxyquire-tes │
   `---------´   │       t generator!       │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

? Path File? (relative from current directory) src/helpers/queue.js
? Source directory? (leave blank if current directory is base source directory) src
? Test directory? (leave blank is current directory is base source directory) tests
? Test suffix? spec
? Exclude dependencies (var names, separated by space)? _ Bluebird
   create tests/src/helpers/queue.spec.js

License

ISC © Kandito A. Wicaksono

Package Sidebar

Install

npm i generator-proxyquire-test

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

9.09 kB

Total Files

7

Last publish

Collaborators

  • kandito