run-with-mocha

1.1.0 • Public • Published

run-with-mocha

Build Status NPM Version License

run a script with mocha without mocha command

If run a script without mocha command, run-with-mocha re-executes the script with mocha command. So, you can run tests directly without mocha command. I use this module for quick testing using atom-runner (Ctrl-R).

screen shot

Installation

npm install --save mocha run-with-mocha

Example

"use strict";
 
require("run-with-mocha");
 
const assert = require("assert");
 
describe("Array", () => {
  describe("#indexOf()", () => {
    it("should return index when the value is present", () => {
      const ary = [ 1, 2, 3 ];
 
      assert(ary.indexOf(0) === 2);
    });
  });
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    2
  • 1.0.0
    1
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i run-with-mocha

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • mohayonao