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

35 lines (34 loc) 3.05 kB
import DataTable from "./data_table"; import { ICaseHookBody, ICaseHookOptions, IParameterTypeDefinition, IRunHookBody, IRunHookOptions, IStepDefinitionBody, IStepHookBody, IStepHookOptions } from "./public-member-types"; export { resolve as resolvePreprocessorConfiguration, IPreprocessorConfiguration, } from "./preprocessor-configuration"; export { addCucumberPreprocessorPlugin } from "./add-cucumber-preprocessor-plugin"; export { beforeRunHandler, afterRunHandler, beforeSpecHandler, afterSpecHandler, afterScreenshotHandler, } from "./plugin-event-handlers"; export declare function isFeature(): boolean; export declare function doesFeatureMatch(expression: string): boolean; export declare function defineStep<T extends unknown[], C extends Mocha.Context>(description: string | RegExp, implementation: IStepDefinitionBody<T, C>): void; export { defineStep as Given, defineStep as When, defineStep as Then }; export declare function Step(world: Mocha.Context, text: string, argument?: DataTable | string): void; export declare function defineParameterType<T, C extends Mocha.Context>(options: IParameterTypeDefinition<T, C>): void; export declare function attach(data: string | ArrayBuffer, mediaTypeOrOptions?: string | { mediaType: string; fileName?: string; }): void; export declare function log(text: string): void; export declare function link(text: string): void; export declare function Before<C extends Mocha.Context>(options: string, fn: ICaseHookBody<C>): void; export declare function Before<C extends Mocha.Context>(options: ICaseHookOptions, fn: ICaseHookBody<C>): void; export declare function Before<C extends Mocha.Context>(fn: ICaseHookBody<C>): void; export declare function After<C extends Mocha.Context>(options: string, fn: ICaseHookBody<C>): void; export declare function After<C extends Mocha.Context>(options: ICaseHookOptions, fn: ICaseHookBody<C>): void; export declare function After<C extends Mocha.Context>(fn: ICaseHookBody<C>): void; export declare function BeforeStep<C extends Mocha.Context>(options: string, fn: IStepHookBody<C>): void; export declare function BeforeStep<C extends Mocha.Context>(options: IStepHookOptions, fn: IStepHookBody<C>): void; export declare function BeforeStep<C extends Mocha.Context>(fn: IStepHookBody<C>): void; export declare function AfterStep<C extends Mocha.Context>(options: string, fn: IStepHookBody<C>): void; export declare function AfterStep<C extends Mocha.Context>(options: IStepHookOptions, fn: IStepHookBody<C>): void; export declare function AfterStep<C extends Mocha.Context>(fn: IStepHookBody<C>): void; export declare function BeforeAll<C extends Mocha.Context>(options: IRunHookOptions, fn: IRunHookBody<C>): void; export declare function BeforeAll<C extends Mocha.Context>(fn: IRunHookBody<C>): void; export declare function AfterAll<C extends Mocha.Context>(options: IRunHookOptions, fn: IRunHookBody<C>): void; export declare function AfterAll<C extends Mocha.Context>(fn: IRunHookBody<C>): void; export { default as DataTable } from "./data_table";