forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
Description
If the integration folder containing .feature files is not below the package root where cypress-cucumber-preprocessor is installed, preprocessing breaks due to unresolvable dependencies:
Error: Cannot find module 'cypress-cucumber-preprocessor/steps' from '[redacted]/cucumber/Cucumber'
This occurred while Cypress was compiling and bundling your test code. This is usually caused by:
- A missing file or dependency
- A syntax error in the file or one of its dependencies
Example repository: https://github.com/pmelab/cypress-cucumber-preprocessor-example
I think this could be solved by injecting requirements as globals instead of requiring them from inside the template? I don't know enough about the plugin system and browserify, but I would be happy to have a look if I get some pointers.