-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
explicit user configuration is not loaded in 20.0.5 #1185
Comments
Works seemingly fine as far as I can see. You need to provide a minimal, reproducible example. |
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 The purpose of a reproducible example is that it's unambiguous and you need to provide it. |
Hello, I think this issue is linked to cosmicconfig package version 8.3.6 to 9.0.0 and the structure of your project. Can you try creating a package.json file located in project-e2e with your configuration : @badeball Could you please have a look also ? :) More details here : https://github.com/cosmiconfig/cosmiconfig/blob/main/CHANGELOG.md#900 |
@badeball based on what @florianbnd said, are you planning on adding the option to set Creating separate package.json files for all my e2e projects feels like a lot off overkill right now. Thank you! |
@florianbnd, I'm aware of the changelog, but I don't make any changes based on a hunch. Instead, I'd really like for someone to just provide some information indicating that that is indeed the issue being observed. @warri93 has done so now, hence the change. This has been added with v20.0.6. |
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
[email protected]
(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: