jest-test-each
Version:
run parametrised tests easily [typesafe] without text tables or arrays of arrays.
42 lines (41 loc) • 1.12 kB
TypeScript
import { Env } from './test-env';
export declare type TestSetupType = {
/**
* Number suites and cases in each suite
*/
numericCases: boolean;
/**
* Group tests by suites when cases are multiplied
*/
groupBySuites: boolean;
/**
* Group tests by test name suite
*/
groupParentBySuite: boolean;
/**
* Run tests concurrently (for jest -> it.concurrent)
*/
concurrent: boolean;
/**
* Max length of case name - on reaching it will ask to sepcify explicit description for case
*/
testSuiteName: {
maxLength: number;
failOnReached: boolean;
};
};
export declare const testConfigDefault: TestSetupType;
export declare const testConfig: {
config: TestSetupType;
};
export declare const TestEachSetup: (config: Partial<TestSetupType>) => void;
export declare const userEnv: {
env?: Env & EnvHasPending;
};
export declare type EnvHasPending = {
envHasPending?: boolean;
};
export declare const testEnvDefault: () => {
env: Env & EnvHasPending;
};
export declare const TestEachEnv: (env: Partial<Env>) => void;