Skip to content

Not working in a Cypress project #293

@thany

Description

@thany

👓 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions