Helper to create structured test hierarchies with mocha
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
package.json

README.md

#nested-describe

Helper to create nested describe statements for test suites

Install

npm install nested-describe --save-dev

Usage

testfile.js

var nestedDescribe = require('nested-describe');

nestedDescribe('api.routes.helpers', function() {

  it('should carry out a helper function', function () {

  });

});


nestedDescribe(['api', 'routes', 'helpers'], function() {

  it('should carry out a helper function', function () {

  });

});

will yield

  api
    routes
      helpers
        ✓ should carry out a helper function (1ms)

  1 passing (1ms)