UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

23 lines (22 loc) 563 B
export declare enum StepTypes { THEN = "Then", AND = "And", WHEN = "When", GIVEN = "Given", BUT = "But" } export type StepDataTanle = { [key: string]: string; }[]; export declare class Step { readonly type: StepTypes; readonly details: string; docStrings: string | null; isCalled: boolean; dataTables: StepDataTanle; readonly title: string; constructor(type: StepTypes, details: string, title?: string); getTitle(): string; setDocStrings(docStrings: string): void; matchStep(step: Step): boolean; }