Skip to content

Preprocessing breaks if integration folder is not below package root #245

@pmelab

Description

@pmelab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions