jest-bdd-generator
Version:
Jest code generator empowered with Gherkin and BDD
72 lines (60 loc) • 2.02 kB
Markdown
## API Report File for "jest-bdd-generator"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { GherkinDocument } from '@cucumber/messages';
import * as ts from 'typescript';
// @public
export type ExampleStep = {
key: 'Examples' | 'Scenario';
examples: Array<Record<string, string | number>>;
} & IStep;
// @public
export type IStep = {
stepParams?: string[];
key: IStepKey;
value: string;
examples?: Array<Record<string, string | number>>;
sanitizedTitle?: string;
pos: {
start: {
line: number;
character: number;
pos: number;
};
end: {
line: number;
character: number;
pos: number;
};
};
host?: string;
parent?: string;
sourceCode?: {
fullText: string;
imports?: string[];
exports?: string[];
statements?: ts.Statement[];
};
};
// @public
export type IStepKey = 'Given' | 'When' | 'Then' | 'Examples' | 'Scenario' | 'Feature';
// @public (undocumented)
export type Result = Step & {
status?: 'passed' | 'skipped' | 'failed';
errors?: string[];
};
// @public (undocumented)
export type Step = ExampleStep | IStep;
// @public (undocumented)
export class TestGeneratorFromSource {
compileGherkinFromSource(gherkinDoc: string): GherkinDocument;
compileKnownStepsFromSource(source: string): JestToGherkin['output'];
// @deprecated (undocumented)
generateGherkinFromSource(steps: Step[], gherkinSource: string): string | undefined;
generateJestFromGherkin(steps: Step[], gherkinSource: string): string | undefined;
source: string;
// Warning: (ae-forgotten-export) The symbol "JestToGherkin" needs to be exported by the entry point TestGeneratorFromSource.d.ts
transpiler?: JestToGherkin;
}
// (No @packageDocumentation comment for this package)
```