gauge-ts
Version:
Typescript runner for Gauge
26 lines (25 loc) • 1.02 kB
TypeScript
import type { CommonFunction } from "../utils/Util";
import type { Range } from "./Range";
import type { StepRegistryEntry } from "./StepRegistryEntry";
export declare class StepRegistry {
private _registry;
private _continueOnFailureFunctions;
constructor();
get(text: string): StepRegistryEntry;
isImplemented(text: string): boolean;
hasMultipleImplementations(stepText: string): boolean;
add(text: string, entry: StepRegistryEntry): void;
addContinueOnFailure(func: CommonFunction, exceptions?: Array<string>): void;
getContinueOnFailureFunctions(func: CommonFunction): Array<string>;
getStepPositions(filePath: string): Array<{
stepValue: string;
span: Range;
}>;
getStepTexts(): Array<string>;
isFileCached(filePath: string): boolean;
removeSteps(filePath: string): void;
setInstanceForMethodsIn(file: string, instance: Record<string, unknown>): void;
clear(): void;
}
declare const registry: StepRegistry;
export default registry;