refactor(Cypress): add nodemodules
This commit is contained in:
15
node_modules/cypress-cucumber-preprocessor/lib/getConfig.js
generated
vendored
Normal file
15
node_modules/cypress-cucumber-preprocessor/lib/getConfig.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
const cosmiconfig = require("cosmiconfig");
|
||||
|
||||
let explorer;
|
||||
|
||||
exports.getConfig = () => {
|
||||
if (!explorer) {
|
||||
explorer = cosmiconfig("cypress-cucumber-preprocessor", {
|
||||
sync: true,
|
||||
rcExtensions: true,
|
||||
});
|
||||
}
|
||||
|
||||
const loaded = explorer.load();
|
||||
return loaded && loaded.config;
|
||||
};
|
Reference in New Issue
Block a user