Skip to content

Type Alias: GherkinContext

@termwright/gherkin


@termwright/gherkin / GherkinContext

GherkinContext<Fixtures> = TermwrightFixtures & Fixtures & object

Defined in: definitions.ts:16

Termwright’s native and project fixtures plus Gherkin’s per-scenario state.

readonly defer: (cleanup) => void

Registers test-scoped cleanup. Cleanups run in reverse order after After hooks.

() => unknown | Promise<unknown>

void

readonly expect: TermwrightExpect

readonly scenario: GherkinScenario

readonly use: <T>(resource) => T

Registers a closeable/disposable resource and returns it unchanged.

T extends GherkinResource

T

T

readonly world: GherkinWorld

Fixtures extends object = object