@amiceli/vitest-cucumber
Version:
vitest tools to use Gherkin feature in unit tests
11 lines (10 loc) • 499 B
TypeScript
import type { Background } from '../../parser/models/Background';
import type { BackgroundStepTest, MaybePromise } from '../types';
import type { ScenarioSteps } from './types';
type DescribeScenarioArgs = {
background: Background;
predefinedSteps: ScenarioSteps[];
backgroundCallback: (op: BackgroundStepTest) => MaybePromise;
};
export declare function createBackgroundDescribeHandler({ background, predefinedSteps, backgroundCallback, }: DescribeScenarioArgs): () => void;
export {};