UNPKG

quickpickle

Version:

Plugin for Vitest to run tests written in Gherkin Syntax.

20 lines (19 loc) 795 B
import { Expression } from '@cucumber/cucumber-expressions'; import { type IParameterTypeDefinition } from './shims/cucumber'; interface StepDefinition { expression: string | RegExp; f: (state: any, ...args: any[]) => any; cucumberExpression: Expression; } interface StepDefinitionMatch { stepDefinition: StepDefinition; parameters: any[]; } export declare const defineParameterType: (parameterType: IParameterTypeDefinition<any>) => void; export declare const addStepDefinition: (expression: string | RegExp, f: (state: any, ...args: any[]) => any) => void; type SnippetData = { stepType: 'Context' | 'Action' | 'Outcome'; dataType: string; }; export declare const findStepDefinitionMatch: (step: string, snippetData: SnippetData) => StepDefinitionMatch; export {};