Unable to specify configuration in lerna repo with hoisted packages
See original GitHub issueI’ve got a lerna repo with packages/* packages and apps/* packages. In one of my apps, I’ve added cypress
and cypress-cucumber-preprocessor
. When I go through the example, I’m able to get my .feature file detected by the cypress runner, but when I execute it, it doesn’t detect any step definitions.
I added some logs to see where the issue might be, and I can see that the cosmiconfig is not finding any configuration even though I’ve tried adding the section to package.json
as well as in an external file. I suspect the issue is with the fact that the cosmiconfig package has been hoisted out of my app directory’s node_modules
and put into the root node_modules
.
Is there some other way to configure the preprocessor without relying on cosmiconfig, or alternatively, “dumping” all the paths that the tool searches for step definitions in order to just put them in the right place without configuration?
Please let me know if you require additional info.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top GitHub Comments
Thank you for kind words @akatechis ! Feel free using this space if you need any help. 😃
Finally figured this out, I was iterating on the phrase in my feature file, and without realizing it, the matcher in the step definition did not match what was in the feature file.
Apologies for taking up your time, and thank you so much for such an awesome tool. I was only recently made aware of cucumber and cypress, and using them together unlocks so many possibilities for us. I’m really excited to get the rest of my team on board with this.
Thanks!