Arize Phoenix TS
    Preparing search index...

    Type Alias PhoenixTestEach<Input, Expected>

    PhoenixTestEach: (
        name:
            | string
            | ((row: TestEachRow<Input, Expected>, index: number) => string),
        fn: TestFn<Input, Expected>,
        timeout?: number,
    ) => void

    The test body returned by PhoenixTest.each after a table is bound.

    Type Parameters

    Type Declaration

      • (
            name:
                | string
                | ((row: TestEachRow<Input, Expected>, index: number) => string),
            fn: TestFn<Input, Expected>,
            timeout?: number,
        ): void
      • Parameters

        • name: string | ((row: TestEachRow<Input, Expected>, index: number) => string)

          Test name, or a template (%i / %s / %j), or a function that derives the name from the row and its index.

        • fn: TestFn<Input, Expected>

          The test handler, run once per row in the bound table.

        • Optionaltimeout: number

          Optional per-test timeout in milliseconds.

        Returns void