Skip to content

Commit

Permalink
fix: require module in function scope (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric authored Oct 28, 2021
1 parent a7ee69f commit c51ab5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cypress-plugins/src/plugins/cucumberPreprocessor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const cucumber = require('cypress-cucumber-preprocessor').default

module.exports = function cucumberPreprocessor(on) {
const cucumber = require('cypress-cucumber-preprocessor').default
on('file:preprocessor', cucumber())
}

0 comments on commit c51ab5d

Please sign in to comment.