UNPKG

@badeball/cypress-cucumber-preprocessor

Version:

[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n

32 lines (31 loc) 942 B
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; }