Arize Phoenix TS
    Preparing search index...

    Type Alias TestEachRow<Input, Expected>

    TestEachRow: {
        dryRun?: boolean;
        id?: string;
        input: Input;
        metadata?: KVMap;
        repetitions?: number;
        splits?: string[];
    } & ReferenceOutput<Expected> & Record<string, unknown>

    Each-row shape accepted by test.each(table)(name, fn); each row defines one Example.

    Like TestParams, the example's expected output is supplied via ReferenceOutput (expected / reference / output, at most one). The trailing index signature still permits arbitrary extra columns on a row (e.g. for %j name interpolation) without weakening that constraint.

    Type Parameters

    Type Declaration

    • OptionaldryRun?: boolean

      Per-row dry-run flag; see TestParams.dryRun.

    • Optionalid?: string
    • input: Input
    • Optionalmetadata?: KVMap
    • Optionalrepetitions?: number

      Per-row repetition count; see TestParams.repetitions.

    • Optionalsplits?: string[]

      Per-row split assignment(s); see TestParams.splits.