@amiceli/vitest-cucumber
Version:
vitest tools to use Gherkin feature in unit tests
16 lines (15 loc) • 697 B
TypeScript
import type { RequiredDescribeFeatureOptions } from '../../vitest/describe-feature';
import { Rule } from './Rule';
import { ScenarioParent } from './ScenarioParent';
export declare class Feature extends ScenarioParent {
private readonly _rules;
constructor(name: string, title?: string);
getRuleByName(name: string): Rule | undefined;
getFirstRuleNotCalled(options: RequiredDescribeFeatureOptions): Rule | undefined;
haveAlreadyCalledRule(): boolean;
checkUncalledRule(options: RequiredDescribeFeatureOptions): this;
checkIfRuleExists(ruleName: string): Rule;
mustHaveScenarioOrRules(): void;
addRule(newRule: Rule): void;
get rules(): Readonly<Rule[]>;
}