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

6 lines (5 loc) 825 B
import messages from "@cucumber/messages"; export declare function traverseGherkinDocument(gherkinDocument: messages.GherkinDocument): Generator<messages.GherkinDocument | messages.Feature | messages.Location | messages.Tag | messages.FeatureChild | messages.Rule | messages.RuleChild | messages.Background | messages.Step | messages.DocString | messages.DataTable | messages.TableRow | messages.TableCell | messages.Scenario | messages.Examples, void, unknown>; export declare function collectTagNames(tags: readonly (messages.Tag | messages.PickleTag)[] | null | undefined): string[]; export type YieldType<T extends Generator> = T extends Generator<infer R> ? R : never; export declare function createAstIdMap(gherkinDocument: messages.GherkinDocument): Map<string, YieldType<ReturnType<typeof traverseGherkinDocument>>>;