-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
unable to run tests after updating project dependencies : wdio not finding conf.js file #6244
Comments
For information, seeing bugs that a similare to my issue, refering to yarn not working with webdriver |
@pfoucray please ensure that you have updated all WebdriverIO related packages. The issues you have linked are 3 years old and unrelated to this. I will close this but happy to re-open in case this bug continues to appear after updating all packages. |
@christian-bromann ANOTHER THING : |
@pfoucray make sure you clean your |
@christian-bromann Also : on the very same computer : have the project originaly cloned and working on with node_modules untuched that is working fine. Currently updateing npm from 6.14.8 to 6.14.9 Thx for the replies and followup |
This is not a valid wdio command. |
You are absolutely right, my mistake After npm update : seems to start. |
An alternate root cause is that the config file referenced in the Package.json under Scripts does not exist. In the package.json
But there is no /config/chrome.js config file |
[//]: # NOTE: This repository only maintains packages that are listed in the Readme. Please make sure that your issue is directly caused by one of these packages and if not file an issue in the correct 3rd party package repository.
Environment (please complete the following information):
Config of WebdriverIO
shared.config.js, imported in different config.js files, that are called through wdio CLI
Ex : npx wdio ./config/wdio.browserstack.local.conf.js
Describe the bug
I have a version of my project with node_modules installed, locally.
As soon as I perform a yarn install / yarn add -D node_module_name
it becomes impossible for wdio CLI to find my .conf.js file.
message : ? Error: Could not execute "run" due to missing configuration. Would you like to create one? (y/N)
I can assure that deleting the complete folder node_module to replace by the one used before performing a yarn install / add will "fix" the issue.
In other words, I'm unable to update my project dependancies, it "breaks" wdio
To Reproduce
Steps to reproduce the behavior:
start tests using npx wdio wdio.cong.js
everything runs smooth
perform and yarn install / yarn add
don't change anything in the src code
wdio will not find the conf file, with the exact same command.
Expected behavior
I should be able to update my project dependancies (with minor versions) or add node-modules (such as official reporters like Allure) without breaking wdio
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: