UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

17 lines (16 loc) 726 B
import { type ArrowFunction } from 'ts-morph'; import type { ScenarioParent } from '../../parser/models'; import type { StepAble } from '../../parser/models/Stepable'; import { type AstOptions, BaseAst } from './BaseAst'; export type StepableAstOptions = AstOptions & { stepableParent: ScenarioParent; stepableParentFunction: ArrowFunction; forRule?: boolean; }; export declare abstract class StepableAst extends BaseAst { protected stepableParent: ScenarioParent; protected stepableParentFunction: ArrowFunction; protected readonly forRule: boolean; protected constructor(options: StepableAstOptions); updateStepableArguments(stepable: StepAble, stepableArrowFunction: ArrowFunction): void; }