UNPKG

jest-test-each

Version:

run parametrised tests easily [typesafe] without text tables or arrays of arrays.

13 lines (12 loc) 396 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("./utils/utils"); describe('test examples', () => { describe('Demo0', () => { its() .each([{ a: '1' }, { a: '2' }]) .each(t => [{ desc: 'a should be ' + t.a }]) .each([{ d: '3' }, { d: '4' }]) .run(t => utils_1.success()); }); });