UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

110 lines (109 loc) 4.61 kB
import type { Background } from '../parser/models/Background'; import type { Rule } from '../parser/models/Rule'; import type { ScenarioParent } from '../parser/models/ScenarioParent'; import type { StepAble } from '../parser/models/Stepable'; import type { Feature } from '../parser/models/feature'; import type { Scenario, ScenarioOutline } from '../parser/models/scenario'; import type { Step, StepTypes } from '../parser/models/step'; export declare class VitestsCucumberError extends Error { constructor(message: string, name?: string); } export declare class NotScenarioOutlineError extends VitestsCucumberError { constructor(scenario: Scenario); } export declare class IsScenarioOutlineError extends VitestsCucumberError { constructor(scenario: Scenario); } export declare class BackgroundNotCalledError extends VitestsCucumberError { constructor(background: Background); } export declare class ScenarioNotCalledError extends VitestsCucumberError { constructor(scenario: Scenario); } export declare class ScenarioOutlineVariableNotCalledInStepsError extends VitestsCucumberError { constructor(scenario: ScenarioOutline, variableName: string); } export declare class ScenarioOulineWithoutExamplesError extends VitestsCucumberError { constructor(scenario: ScenarioOutline); } export declare class ScenarioOutlineVariablesDeclaredWithoutExamplesError extends VitestsCucumberError { constructor(scenario: ScenarioOutline); } export declare class MissingScenarioOutlineVariableValueError extends VitestsCucumberError { constructor(scenario: ScenarioOutline, variableName: string); } export declare class FeatureUknowScenarioError extends VitestsCucumberError { constructor(feature: ScenarioParent, scenario: Scenario); } export declare class StepAbleUnknowStepError extends VitestsCucumberError { constructor(stepable: StepAble, step: Step); } export declare class StepAbleStepExpressionError extends VitestsCucumberError { constructor(stepable: StepAble, step: Step); } export declare class StepAbleStepsNotCalledError extends VitestsCucumberError { constructor(stepable: StepAble, step: Step); } export declare class RuleNotCalledError extends VitestsCucumberError { constructor(rule: Rule); } export declare class FeatureUknowRuleError extends VitestsCucumberError { constructor(feature: Feature, rule: Rule); } export declare class FeatureFileNotFoundError extends VitestsCucumberError { constructor(path: string); } export declare class NotAllowedBackgroundStepTypeError extends VitestsCucumberError { constructor(type: StepTypes); } export declare class TwiceBackgroundError extends VitestsCucumberError { constructor(); } export declare class BackgroundNotExistsError extends VitestsCucumberError { constructor(parent: ScenarioParent); } export declare class OnlyOneFeatureError extends VitestsCucumberError { constructor(); } export declare class StepExpressionMatchError extends VitestsCucumberError { constructor(step: Step, expression: string); } export declare class MissingFeature extends VitestsCucumberError { constructor(line: string); } export declare class MissingSteppableError extends VitestsCucumberError { constructor(line: string); } export declare class MissingScnearioOutlineError extends VitestsCucumberError { constructor(line: string); } export declare class MissingExamplesError extends VitestsCucumberError { constructor(line: string); } export declare class SpokenKeywordError extends VitestsCucumberError { constructor(line: string, keywords: string[]); } export declare class ParentWithoutScenario extends VitestsCucumberError { constructor(feature: ScenarioParent); } export declare class InvalidUrlParameterError extends VitestsCucumberError { constructor(arg: string); } export declare class InvalidDateParameterError extends VitestsCucumberError { constructor(arg: string); } export declare class InvalidCurrencyParameterError extends VitestsCucumberError { constructor(arg: string); } export declare class BuiltinParameterExpressionAlreadyExistsError extends VitestsCucumberError { constructor(expressionName: string); } export declare class CustomParameterExpressionAlreadyExistsError extends VitestsCucumberError { constructor(expressionName: string); } export declare class ItemAlreadyExistsError extends VitestsCucumberError { constructor(parent: StepAble | ScenarioParent, child: Step | Scenario | Rule); } export declare class RequiredTitleError extends VitestsCucumberError { constructor(line: string, keyword: string); }