Update service to ESM and WDIO v9#126
Update service to ESM and WDIO v9#126christian-bromann merged 59 commits intowebdriverio-community:mainfrom
Conversation
Updated to WDIO v8 Updated to Node v18
Switch to jsconfig for now Updated necessary types for spec files Specify browserVersion for wdio conf
Replaced import all with default import Removed unnecessary export
|
@dons20 thanks for taking a stab at it. Happy to help if needed. |
|
Haven't forgotten about this one, I had some major PC issues. SSD failed but I got it replaced. Will have some changes out soon again. |
Removed older babel references, configs Added types in place of JSDoc types
Update files to correct line-endings
|
Hey @dons20 , thanks for all your work so far! Let me know when you think this is ready for review! |
|
Will do, I only have to retest the test directory with these new changes. Everything else should be done |
Updated deps Added temporary file for further run arg types and comments
|
Back at it, pushed some of my changes, and I'll have some more incoming soon. Trying to get the local build and tests working fully. |
|
Awesome, looking forward to the changes. Let me know when I can review something. |
Added mocks where needed Updated tsconfigs to handle build vs development type-checking Updated imports where applicable Other minor improvements
Updated more configs Added some dev dependencies
|
I'm pretty happy with the results so far, and I think most of this can start to be reviewed, but you can let me know if I should take this out of draft yet. I still have these items on my todo list:
|
christian-bromann
left a comment
There was a problem hiding this comment.
Some comments, overall looks aweseome!
| } | ||
| } | ||
|
|
||
| class DockerLauncherForTests extends DockerLauncher { |
There was a problem hiding this comment.
Why is this needed, seems like DockerLauncher defines this props to be public
There was a problem hiding this comment.
When writing the tests, it complained about some variables being private or protected when trying to stub or spy. Perhaps there's a better way of resolving this?
|
Thanks for reviewing! Will go through the comments shortly |
|
@dons20 any updates or anything I can help with? |
|
No updates yet, had a couple of busy weeks but I will make some updates in the coming days 🤞🏾 |
|
Would it help if I separated out the upgrade from v7 to v8 to fix the CI pipeline added in #132? |
|
@seanpoulter If that is something you can manage in a short period of time, then feel free to |
|
Okay so after a few hours of troubleshooting the pipeline, I was able to identify a few necessary fixes to the code itself. Here's what I identified and fixed.
@christian-bromann you can take a look at the latest changes as well as the pipeline. This should be good to go now. |
christian-bromann
left a comment
There was a problem hiding this comment.
Amazing work 👏 Thanks a ton!
|
Hey dons20 👋 Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution. We've sent you an email with further instructions on how to claim your expenses from our development fund. We are looking forward to more contributions from you in the future 🙌 Have a nice day, |
Description
This started as a small experiment to make some changes locally to update the service. I figured it may be a good idea to update this to use ESM as well as Node v20 since it's the latest LTS at this time.
Leaving this up as a draft to get some initial thoughts. I'm not particularly opinionated as to the direction this should go either. Will need to do additional testing so that everything is compatible, but hopefully some of these changes help 🙂
Checklist