Nonchalantly Perusing Magazines
    Wondering what’s next for npm?Check out our public roadmap! »

    @broofa/mocha

    1.0.1 • Public • Published

    @broofa/mocha

    A lightweight, drop-in alternative to mocha

    Mocha is a great unit test tool, but it can be rather heavy. It adds 12MB worth of dependencies, and debugging errors can be challenging because of how logging and error reporting work, and how it integrates with things like Chrome Developer Tools.

    This is minimal implementation of Mocha's BDD API. BDD-based tests (tests that use describe(), it(), before(), beforeEach(), etc) should work with no modification.

    The log output is slightly different than the original mocha to make logging more intuitive. All console and error output is immediately written to the console.

    Installation

    npm i @broofa/mocha
    

    Usage

    $ mocha test/foo.js test/bar.js
    

    debugger behavior

    @broofa/mocha automatically triggers a debugger statement before each test function when run with --inspect-brk.

    Install

    npm i @broofa/mocha

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    6.54 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar