@badeball/cypress-cucumber-preprocessor
Version:
[](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [ • 942 B
TypeScript
import * as messages from "@cucumber/messages";
export interface IParameterTypeDefinition<T, C extends Mocha.Context> {
name: string;
regexp: RegExp;
transformer: (this: C, ...match: string[]) => T;
}
export interface IHookOptions {
name?: string;
tags?: string;
}
export interface IHookBody {
(this: Mocha.Context, options: IHookParameter): void;
}
export interface IHookParameter {
pickle: messages.Pickle;
gherkinDocument: messages.GherkinDocument;
testCaseStartedId: string;
}
export interface IStepHookParameter {
pickle: messages.Pickle;
pickleStep: messages.PickleStep;
gherkinDocument: messages.GherkinDocument;
testCaseStartedId: string;
testStepId: string;
}
export interface IStepHookBody {
(this: Mocha.Context, options: IStepHookParameter): void;
}
export interface IStepDefinitionBody<T extends unknown[], C extends Mocha.Context> {
(this: C, ...args: T): void;
}