UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

18 lines (17 loc) 463 B
import { DefineBackground, DefineScenario, } from '.'; import { ScenarioParent } from './ScenarioParent'; export class Rule extends ScenarioParent { isCalled; constructor(name, title = 'Rule') { super(name, title); this.isCalled = false; } } export class DefineRule extends Rule { getBackground() { return new DefineBackground(); } getScenario(description) { return new DefineScenario(description); } }