Meach
Bun

method

test.Describe.each

each<T extends readonly [any, any]>(
table: readonly T[]
): (label: DescribeLabel, fn: (...args: [...T[]]) => void | Promise<unknown>, options?: number | TestOptions) => void;

Returns a function that runs for each item in table.

@param table

Array of Arrays with the arguments that are passed into the test fn for each row.

each<T extends any[]>(
table: readonly T[]
): (label: DescribeLabel, fn: (...args: Readonly<T>) => void | Promise<unknown>, options?: number | TestOptions) => void;
each<T>(
table: T[]
): (label: DescribeLabel, fn: (...args: T[]) => void | Promise<unknown>, options?: number | TestOptions) => void;