jest-bdd-generator
Version:
Jest code generator empowered with Gherkin and BDD
15 lines (14 loc) • 476 B
JavaScript
import { JestToGherkin } from "../jest-to-gherkin";
import * as path from "path";
class JestCucumberExecute extends JestToGherkin {
outputCode() {
const fileHeadJest = `const DelegateJest = require('${path.join(__dirname, "./delegate-jest")}').DelegateJest;
const cachedResult = new DelegateJest(__filename);
cachedResult.delegateTo(${JSON.stringify(this.steps)});`;
return fileHeadJest;
}
}
export {
JestCucumberExecute
};
//# sourceMappingURL=index.js.map