qfox / mocha-runkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mocha + RunKit = ❤️

Stupidly simple alpha version of mocha runner adapted for RunKit with broken interface.

Installation

No need. Use RunKit.

Usage

For now you can run tests in RunKit like this:

const { tests } = require('mocha-runkit');
const { expect } = require('chai');

await tests({
    'green': () => {
        expect(1).to.equal(1);
    },

    'red': () => {
        expect(24).to.equal(42);
    }
});

License

MPL-2.0

About


Languages

Language:JavaScript 100.0%