UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

15 lines (14 loc) 750 B
import type { Background } from '../src/parser/models/Background'; import type { Feature } from '../src/parser/models/feature'; import type { Step } from '../src/parser/models/step'; export declare function generateStep(step: Step): string; export declare function generateScenarii(scenarii: Feature['scenarii'], forRule?: boolean): string[]; export declare function generateBackground(back: Background, forRule?: boolean): string[]; export declare function generateRules(rules: Feature['rules']): string[]; type WriteSpecFileOptions = { feature: Feature; specFilePath: string; featureFilePath: string; }; export declare function writeSpecFile({ feature, specFilePath, featureFilePath, }: WriteSpecFileOptions): Promise<void>; export {};