You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mocha-directory

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-directory

Allows you to organize your mocha test suites as directories

2.3.0
latest
Source
npmnpm
Version published
Weekly downloads
38
-25.49%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

mocha

FAQs

Package last updated on 02 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts