typespec-bdd
Version:
BDD framework for TypeScript.
17 lines (16 loc) • 630 B
TypeScript
import { ITestReporter, ITestHooks } from './Hooks';
import { StepCollection } from './Steps';
import { Scenario } from './State';
export declare class FeatureParser {
private testReporter;
private tagsToExclude;
scenarios: Scenario[];
private scenarioIndex;
private featureRunner;
private hasParsed;
constructor(testReporter: ITestReporter, testHooks: ITestHooks, steps: StepCollection, tagsToExclude: string[]);
run(spec: string, afterFeatureHandler: Function): void;
private parseSpecification(spec);
private process(line);
private runFeature(afterFeatureHandler);
}