jest-test-each
Version:
run parametrised tests easily [typesafe] without text tables or arrays of arrays.
9 lines (8 loc) • 314 B
TypeScript
import { TestEach } from './test-each';
import { TestEachSetup, TestEachEnv } from './test-each-setup';
declare type TestEachFunc = <T = {}, B = {}>(desc?: string) => TestEach<T, B>;
declare global {
export const its: TestEachFunc;
export const Test: TestEachFunc;
}
export { TestEachSetup, TestEachEnv };