mocha-run
Allows you to run mocha test files using node testfile.js
.
Add the following preamble to your mocha test files:
// allows you to run this file using `node file.js`
if(require('mocha-run')()) { return; }
Allows you to run mocha test files using node testfile.js
.
Add the following preamble to your mocha test files:
// allows you to run this file using `node file.js`
if(require('mocha-run')()) { return; }
npm i mocha-run
0
0.1.0
BSD