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

30 lines (29 loc) 1.4 kB
import type * as messages from "@cucumber/messages"; import { ICaseHook, Registry } from "./registry"; import { StrictTimestamp } from "./helpers/messages"; interface IStep { hook?: ICaseHook<Mocha.Context>; pickleStep?: messages.PickleStep; } declare const internalPropertiesReplacementText = "Internal properties of cypress-cucumber-preprocessor omitted from report."; export interface InternalSpecProperties { pickle: messages.Pickle; testCaseStartedId: string; currentStepStartedAt?: StrictTimestamp; currentStep?: IStep; allSteps: IStep[]; remainingSteps: IStep[]; toJSON(): typeof internalPropertiesReplacementText; } export interface InternalSuiteProperties { isEventHandlersAttached?: boolean; } export declare function retrieveInternalSpecProperties(): InternalSpecProperties; export default function createTests(registry: Registry<Mocha.Context, unknown[]>, seed: number, source: string, gherkinDocument: messages.GherkinDocument, pickles: messages.Pickle[], isTrackingState: boolean, softErrors: boolean, omitFiltered: boolean, stepDefinitionHints: { stepDefinitions: string | string[]; stepDefinitionPatterns: string[]; stepDefinitionPaths: string[]; }, dryRun: boolean): void; type Tail<T extends any[]> = T extends [infer _A, ...infer R] ? R : never; export type CreateTestsOptions = Tail<Parameters<typeof createTests>>; export {};