Skip to content

Commit

Permalink
fix resourcePath not passed in via webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
bn-jcundill authored and lgandecki committed Jul 25, 2019
1 parent ff1f41f commit 158ef02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const createCucumber = (filePath, cucumberJson, spec, toRequire) =>
createTestsFromFeature(filePath, spec);
`;

module.exports = (spec, filePath = this.resourcePath) => {
module.exports = function(spec, filePath = this.resourcePath) {
const explorer = cosmiconfig("cypress-cucumber-preprocessor", { sync: true });
const loaded = explorer.load();
const cucumberJson =
Expand Down

0 comments on commit 158ef02

Please sign in to comment.