Simon Priet 9e2991e668 init
2021-09-05 22:53:58 +02:00

16 lines
297 B
JavaScript

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;
};