UNPKG

jest-test-each

Version:

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

19 lines (18 loc) 568 B
export declare type Runner = (name: string, body: () => void) => void; export declare type BeforeAfter = (fn: (cb: any) => any, timeout?: number) => void; export interface TestRunner { (name: string, body: () => void, timeout?: number): void; only: TestRunner; skip: TestRunner; todo: TestRunner; concurrent: TestRunner; } export declare type Env = { describe: Runner; it: TestRunner; beforeAll: BeforeAfter; beforeEach: BeforeAfter; afterEach: BeforeAfter; afterAll: BeforeAfter; pending: (reason?: string) => void; };