mocha-directory

2.3.0 • Public • Published

mocha-directory

Allows you to organize your BDD mocha test suites as directories

Usage

File tree:

  • tests/
    • index.js
    • Test Suite/
      • test.js

tests/Test Suite/test.js:

it( 'should be a test', function() {
  // Test
} );

index.js

require( 'mocha-directory' )();

Command:

mocha tests/

Output:

Test Suite
    ✓ should be a test

  1 passing (9ms)

Package Sidebar

Install

npm i mocha-directory

Weekly Downloads

155

Version

2.3.0

License

MIT

Last publish

Collaborators

  • frenchie4111