@amiceli/vitest-cucumber
Version:
vitest tools to use Gherkin feature in unit tests
21 lines (20 loc) • 706 B
TypeScript
import { Step } from './step';
import { Taggable } from './Taggable';
export declare abstract class StepAble extends Taggable {
abstract getTitle(): string;
isCalled: boolean;
private readonly _steps;
protected readonly title: string;
constructor(title: string);
stepFailedExpressionMatch: {
[key: string]: number;
};
findStepByTypeAndDetails(type: string, details: string): Step | undefined;
hasUnCalledSteps(): boolean;
getNoCalledStep(): Step | undefined;
addStep(newStep: Step): void;
checkIfStepWasCalled(): void;
checkIfStepExists(stepType: string, stepDetails: string): Step;
get lastStep(): Step;
get steps(): Readonly<Step[]>;
}