@amiceli/vitest-cucumber
Version:
vitest tools to use Gherkin feature in unit tests
21 lines (20 loc) • 699 B
TypeScript
import { type ArrowFunction } from 'ts-morph';
import type { Background, Scenario, ScenarioOutline } from '../../parser/models';
import { type AstOptions, BaseAst } from './BaseAst';
type StepAstOptions = AstOptions & {
stepParent: Scenario | ScenarioOutline | Background;
stepParentFunction: ArrowFunction;
};
export declare class StepAst extends BaseAst {
private stepableParent;
private stepParentFunction;
private constructor();
static fromOptions(options: StepAstOptions): StepAst;
handleSteps(): void;
private getStepsToRemove;
private getStepsToAdd;
private stepMatchCallExpression;
private isStepLine;
private getStepExpressions;
}
export {};