mocha-it-each
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Mocha param

Forked from https://github.com/mikejsdev/mocha-param.git

Parameterized tests for Mocha.

npm install --save-dev mocha-it-each

Usage

import { itEach } from 'mocha-it-each';
import { expect } from 'chai';

describe('test with parameters', function() {
  itEach('test with value ${value}', [0,1,2], function(value) {
    expect(typeof value).to.equal(typeof Number());
  });
});

only and skip can be used same as it

/mocha-it-each/

    Package Sidebar

    Install

    npm i mocha-it-each

    Weekly Downloads

    1,309

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    7.26 kB

    Total Files

    15

    Last publish

    Collaborators

    • anthony_d_b