@northbrook/mocha
Mocha Configuration for Northbrook
Last updated 10 years ago by northbrook .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @northbrook/mocha 
SYNC missed versions from official npm registry.

@northbrook/mocha

Test your packages with Mocha

Seamless testing with Mocha for Northbrook. Handles TypeScript and ES2015 tests out-of-box.

Requires test files to be named using one of the following patterns:

  • .test.(js|ts)
  • .spec.(js|ts),
  • -test.(js|ts),
  • -spec.(js|ts)
  • Test.(js|ts),
  • Spec.(js|ts)

Let me have it!

npm install --save-dev @northbrook/mocha

Usage

Configuration

// northbrook.js
const mocha = require('@northbrook/mocha').plugin;
// northbrook.ts
import { plugin as mocha } from '@nothrbook/mocha';

module.exports = {
  plugins: [ mocha ],

  // 100% optional
  mocha: {
    // An array of packages to require before running your tests
    // That would normally be used as `mocha -r _____`
    require: [ 'jsdom-global/register' ],
    // An array of packages you would like to be excluded from test running
    exclude: [ 'name-of-package' ]
  }
}

CLI

northbrook mocha

CLI Options

--changed

Only run tests for the packages that have changed since last release. This option is very useful for speeding up CI testing for monorepos.

northbrook mocha --changed
--require

A list of packages, separated by comma, to require before running your tests That would normally be used as mocha -r _____

northbrook mocha --require jsdom-global/register,buba/register

Current Tags

  • 3.1.1                                ...           latest (10 years ago)

13 Versions

  • 3.1.1                                ...           10 years ago
  • 3.1.0                                ...           10 years ago
  • 3.0.1                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.2.0                                ...           10 years ago
  • 2.1.5                                ...           10 years ago
  • 2.1.4                                ...           10 years ago
  • 2.1.3                                ...           10 years ago
  • 2.1.2                                ...           10 years ago
  • 2.1.1                                ...           10 years ago
  • 2.1.0                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 26
Today 0
This Week 0
This Month 26
Last Day 0
Last Week 15
Last Month 0
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE