Represents the cells of a Gherkin data table associated with a test step.

For steps that include a data table, an instance of this will be injected as the last argument to your step function.

Constructors

Methods

Constructors

Methods

  • Returns an array, with each item representing a row of the table as key/value pairs using the header row for keys.

    Returns readonly Record<string, string>[]

  • Returns an array, with each item being a cell value from the first/only column.

    Returns readonly string[]

    For use with single-column data tables that represent a simple list.

  • Returns a copy of the raw cells, as a two-dimensional array.

    Returns readonly (readonly string[])[]