UNPKG

gpc-remove-duplicates

Version:

This GherKing Precompiler is responsible for having only a reasonable amount of tags and/or rows in each feature file.

19 lines (18 loc) 965 B
import { PreCompiler } from "gherking"; import { Tag, Feature, Scenario, ScenarioOutline, Rule, Examples, Document, DataTable, Step } from "gherkin-ast"; import { RemoveDuplicatesOptions } from "./types"; declare class RemoveDuplicates implements PreCompiler { private options; private featureTags; private ruleTags; constructor(options?: Partial<RemoveDuplicatesOptions>); handleElementTags(e: Scenario | ScenarioOutline | Examples | Rule, p?: Feature | Rule, ...tagsToIgnore: Tag[]): void; handleTableRows(e: DataTable | Examples): void; onFeature(f: Feature, _1: Document, _2: number): void; onRule(r: Rule, f: Feature, _2: number): void; onScenario(s: Scenario, p: Feature | Rule, _1: number): void; onScenarioOutline(so: ScenarioOutline, p: Feature | Rule, _1: number): void; onDataTable(t: DataTable, _1: Step): void; onExamples(e: Examples, _1: ScenarioOutline, _2: number): void; } export = RemoveDuplicates;