Novice, Practiced, Mastered

    @btilford/md-check-exec-mocha
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Configure the MochaExecutor

    Installation

    npm install --save-dev @btilford/md-check
    npm install --save-dev @btilford/md-check-exec-mocha

    Configuration

    const {MochaExecutor} = require('@btilford/md-check-exec-mocha');
    
    MochaExecutor.supply(); // use the defaults
    MochaExecutor.supply(
        {ui: 'bdd'}, // Pass in Mocha.MochaOptions object (a custom reporter will be used unless you provide one)
        false // Don't fail on test failure. (default is true)
    );

    Running Mocha Tests

    Inside your markdown file add a code fence ending with mocha.

    ```typescript mocha
    import {expect} from 'chai';
    
    describe('My test', function() {
        it('Runs this test', function() {
            expect(true).to.eq(true);
            console.log('In test');
        });
    });
    ```
    

    Install

    npm i @btilford/md-check-exec-mocha

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.15 MB

    Total Files

    37

    Last publish

    Collaborators

    • btilford