Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom StepDefinitions path not working the same when using one folder and more test folders #1266

Closed
amilcarjustino opened this issue Jan 9, 2025 · 1 comment

Comments

@amilcarjustino
Copy link

Current behavior

The project has custom path stepDefinitions configured in package.json:
image

When I have just one folder with tests, this doesn't work (cannot find step definitions) [Example1]
When I have just more than one folder with tests, this works fine [Example2]

Desired behavior

The same configuration should work with one or more folders

Test code to reproduce

example1.zip
example2.zip

Versions

  • Cypress version: Latest
  • Preprocessor version: Latest
  • Node version: 22.6.0

Checklist

  • [x ] I've read the FAQ.
  • [x ] I've read instructions for logging issues.
  • [x ] I'm not using cypress-cucumber-preprocessor@4.3.1 (package name has changed and it is no longer the most recent version, see #689).
@badeball
Copy link
Owner

This is intended behavior, I recommend reading the docs on matching thoroughly: https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/step-definitions.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants