-
Notifications
You must be signed in to change notification settings - Fork 289
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
#99 Add ability to connect to an already existing instance of Chrome #100
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.
I think adding a connect
section to configuration is the good way to do. Just some problems:
- Code can be simplified
- Async configuration should not be part of this PR
@@ -38,7 +38,13 @@ async function readConfig() { | |||
} | |||
|
|||
// eslint-disable-next-line global-require, import/no-dynamic-require | |||
const localConfig = require(absConfigPath) | |||
const requiredConfig = require(absConfigPath) |
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.
Why should we support async config? I think it is another issue.
The async function config I originally added was so that I could run an async task first (e.g. launching Chrome and get the WebSocket URI) before returning the However, I realised I could do that async work in a Jest I will update the PR this weekend. |
@gidztech OK thanks |
c1ee05e
to
2ff4bdf
Compare
@neoziro I made some simplifications thanks to my forgotten friend "object spread" |
@neoziro Let me know if there's anything else to do. It would be good to get this in. |
@gidztech good for me! Can you update readme please? 🙏 |
@neoziro Added documentation (with example usage) |
See #99 for discussion.