@fatso83/run-in-mocha

1.0.4 • Public • Published

run-in-mocha

Run a single test file in Mocha

Ask a test file to add its tests to Mocha and run itself

require("@fatso83/run-in-mocha")(__filename);

describe("a suite", function() {
  it("is a passing test", function() {
    // OK
  });

  it("is a failing test", function() {
    throw new Error("OMG, I failed!");
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i @fatso83/run-in-mocha

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • fatso83