1.0.4 • Published 5 years ago

@fatso83/run-in-mocha v1.0.4

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

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!");
  });
});
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago