Function: defineSteps()
@termwright/gherkin / defineSteps
Function: defineSteps()
Section titled “Function: defineSteps()”defineSteps<
Fixtures>(…definitions):GherkinDefinitions<Fixtures>
Defined in: definitions.ts:192
Creates the default export of a paired glue module.
Definitions are data, not global registrations. This is what lets two feature files load different nearest-scope definitions safely in the same Vitest worker.
Type Parameters
Section titled “Type Parameters”Fixtures
Section titled “Fixtures”Fixtures extends object = object
Parameters
Section titled “Parameters”definitions
Section titled “definitions”…readonly GherkinDefinition<Fixtures>[]
Returns
Section titled “Returns”GherkinDefinitions<Fixtures>