vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Not working in a Cypress project

Open thany opened this issue 1 month ago • 0 comments

👓 What did you see?

This is the directory structure:

Image

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:

  1. Where did it not find the step definitions, e.g. where did it look?
  2. If files where found, is there some syntax that it could not understand?
  3. 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?

thany avatar Nov 11 '25 13:11 thany