You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since version 20.0.5 no explicit user configuration is loaded from package.json is loaded.
When I place the configuration in .cypress-cucumber-preprocessorrc.json within the cypress directory it works.
Debug Log with Version 20.0.5:
cypress-cucumber-preprocessor resolved no explicit user configuration +1ms
I'm experiencing a similar issue (common step definitions not found), although our custom configuration is placed in cypress-cucumber-preprocessor.config.js, and not in package.json 🙂. Downgrading to 20.0.4 fixes it.
Here's an example illustrating configuration using package.json and here's a similar example using cypress-cucumber-preprocessor.config.js. They both work, so I'm guessing you're doing something that you're not telling me about.
The purpose of a reproducible example is that it's unambiguous and you need to provide it.
I think this issue is linked to cosmicconfig package version 8.3.6 to 9.0.0 and the structure of your project. searchStrategy is none by default and your configuration is located in root package.json.
Can you try creating a package.json file located in project-e2e with your configuration : "cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": true, "stepDefinitions": [ "./integration/common/*.ts" ] }
Current behavior
Since version
20.0.5
no explicit user configuration is loaded frompackage.json
is loaded.When I place the configuration in
.cypress-cucumber-preprocessorrc.json
within the cypress directory it works.Debug Log with Version
20.0.5
:cypress-cucumber-preprocessor resolved no explicit user configuration +1ms
Debug Log with Version
20.0.4
Desired behavior
User configuration in
package.json
is recognized.Test code to reproduce
Structure of my project
My configuration in
package.json
:Run
DEBUG=cypress:electron,cypress-configuration,cypress-cucumber-preprocessor cypress open
, the explicit user configuration is not loaded.Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: