JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1888
  • Score
    100M100P100Q111940F
  • License MIT

Integrate the JS standard to your Mocha tests

Package Exports

  • mocha-standard

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mocha-standard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mocha-standard

Integrates standard into your mocha tests. This allows you to enforce a "one true" JavaScript coding style in your project via Mocha tests.

This offers a finer alterantive to adding standard into package.json's scripts.test block.

  • Runs in the same node process as mocha, removing maybe 500ms of startup time.
  • Use mocha --watch to recheck for style failures. standard is used programatically, removing a huge overhead (around 1500ms) in re-running it repeatedly with --watch.
  • Painlessly integrate standard into your travisci.org tests.

(Your speed gains may be a bit different from my Pentium II, of course.)

Status


Usage

Add this test file to your Mocha suite:

/* test/standard_test.js */
it('conforms to standard', require('mocha-standard'))

Installation

npm install --save-dev mocha-standard standard