-
-
Notifications
You must be signed in to change notification settings - Fork 26
Avoid chromedriver dependency when using chromedriverCustomPath #64
Avoid chromedriver dependency when using chromedriverCustomPath #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some docs around this new option?
@@ -44,7 +44,8 @@ | |||
"dependencies": { | |||
"@wdio/logger": "^7.5.3", | |||
"fs-extra": "^9.1.0", | |||
"split2": "^3.2.2" | |||
"split2": "^3.2.2", | |||
"tcp-port-used": "^1.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already needed by launcher.js (https://github.com/webdriverio-community/wdio-chromedriver-service/blob/main/src/launcher.js#L7), but is not declared inside package.json, making it unavailable if "chromedriver" is not installed (dependency of this library too)
edit: didn't see your comment
Co-authored-by: Christian Bromann <[email protected]>
This is an improvement of #60 Not a new option, only avoids unnecessary dependency. Thanks for you fast reply! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You right, I hadn't pulled the latest code locally.
Thanks for the contribution!
@christian-bromann is this good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good to go 👍
Avoid import of "chromedriver" when using chromedriverCustomPath.
Add "tcp-port-used" as dependency.