Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Avoid chromedriver dependency when using chromedriverCustomPath #64

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

codigodiabolico
Copy link
Contributor

Avoid import of "chromedriver" when using chromedriverCustomPath.

Add "tcp-port-used" as dependency.

Copy link
Contributor

@christian-bromann christian-bromann left a 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?

tests/launcher.test.js Outdated Show resolved Hide resolved
@@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch 👍

Copy link
Contributor Author

@codigodiabolico codigodiabolico Oct 28, 2021

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 <github@christian-bromann.com>
@codigodiabolico
Copy link
Contributor Author

Can we add some docs around this new option?

This is an improvement of #60

Not a new option, only avoids unnecessary dependency.

Thanks for you fast reply!

Copy link
Contributor

@christian-bromann christian-bromann left a 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!

@goosewobbler
Copy link
Member

goosewobbler commented Jan 6, 2022

@christian-bromann is this good to go?
Looks like it might fix webdriverio-community/wdio-electron-service#14

Copy link
Contributor

@christian-bromann christian-bromann left a 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 👍

@christian-bromann christian-bromann merged commit 088a445 into webdriverio-community:main Jan 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants