mocha-repeater

1.0.2 • Public • Published

Mocha Repeater

Overview

This project purpose is to provide helper methods for mocha.

How to use

const repeat = require('mocha-repeater');
repeat.describe({name: 'test', repeat: 2, fn: function () {
    before(...
    beforeEach(...
    it(...
    describe(...
        it(...
    after(...
    afterEach(...
}})

repeat.describe({isOnly: true, name: test, repeat: 2, fn: function () {
    ...
}})

repeat.describe({isSkip: true, name: test, repeat: 2, fn: function () {
    ...
}})

describe('test', function () {
    repeat.it(... //see options above, same as repeat.describe
})

/mocha-repeater/

    Package Sidebar

    Install

    npm i mocha-repeater

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.97 kB

    Total Files

    5

    Last publish

    Collaborators

    • sansai.ape