Skip to content

Commit

Permalink
fix(cucumber plugin): require dependencies inside plugin function (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 authored May 3, 2023
1 parent 3719f35 commit fa8c3a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cypress-plugins/src/plugins/cucumberPreprocessor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const preprocessor = require('@badeball/cypress-cucumber-preprocessor')
const webpack = require('@cypress/webpack-preprocessor')

module.exports = async function cucumberPreprocessor(on, config) {
const preprocessor = require('@badeball/cypress-cucumber-preprocessor')
const webpack = require('@cypress/webpack-preprocessor')

// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
await preprocessor.addCucumberPreprocessorPlugin(on, config)

Expand Down

0 comments on commit fa8c3a7

Please sign in to comment.