Not working in a Cypress project
👓 What did you see?
This is the directory structure:
And so in the workspace settings, I have added:
"cucumber.features": [
"cypress/e2e/**/*.feature",
],
"cucumber.glue": [
"cypress/support/step_definitions/**/*.ts",
],
And yet, all steps in the .feature files are undefined.
✅ What did you expect to see?
I would expect to see three things in a scenario like this:
- Where did it not find the step definitions, e.g. where did it look?
- If files where found, is there some syntax that it could not understand?
- Anything else that is actually wrong, not just "nope, can't do"
The point is I'd expect the extension to give all the juicy details, instead of just magically not working.
📦 Which tool/library version are you using?
Node.js 22.21.0 Cypress 13.13.3 Cypress-cucumber-preprocessor 23.2.1 (by badeball)
I don't know which Cucumber version - whatever Cypress comes with. It's not overridden or anything.
🔬 How could we reproduce it?
I honestly don't know how Cypress was initially installed in this project - not by me, this project is not a one-man-show :)
But I think the directories are the important bit here. And maybe (but not super likely) the fact that this is a monorepo.
📚 Any additional context?
What path are the configured directories relative to? Even in the documentation, and in the default values, it lists relative paths. Relative to what?