UNPKG

jest-bdd-generator

Version:

Jest code generator empowered with Gherkin and BDD

18 lines (17 loc) 651 B
import { Transpile } from '../transpiler'; export type { ICallbackOnFunctionExpression, Transpile } from '../transpiler'; export * from '../types'; /** * TypeScript compiler for transpiling tests in Jest. * After it transpile an input, the instance stores the extracted information. * this.steps: Step[] - the `Step` compiled from the source code. */ export declare class JestToGherkin extends Transpile { fileName: string; constructor(); /** * Based on the Jest testing structure and comments, output Gherkin code. * @returns {string} Gherkin code in string. */ outputCode(): ReturnType<Transpile['outputCode']>; }