UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

10 lines (9 loc) 345 B
import type { Step } from '../../parser/models/step'; import type { CallbackWithParamsAndContext, CallbackWithSingleContext } from '../types'; export type ScenarioSteps = { key: string; fn: CallbackWithSingleContext | CallbackWithParamsAndContext; step: Step; params: unknown[]; }; export type StepMap = [string, ScenarioSteps];