cypress-cucumber-preprocessor
Version:
Run gherkin-syntaxed specs with cypress.io
12 lines (9 loc) • 350 B
JavaScript
const log = require("debug")("cypress:cucumber");
const { getConfig } = require("./getConfig");
exports.getCucumberJsonConfig = () => {
const config = getConfig();
const cucumberJson =
config && config.cucumberJson ? config.cucumberJson : { generate: false };
log("cucumber.json", JSON.stringify(cucumberJson));
return cucumberJson;
};