-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
🐛⏪️ revert: "tsConfigPath in wdio.conf (#14664)" #14802
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
🐛⏪️ revert: "tsConfigPath in wdio.conf (#14664)" #14802
Conversation
create-wdio
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/appium-service
@wdio/browser-runner
@wdio/browserstack-service
@wdio/cli
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/dot-reporter
@wdio/firefox-profile-service
@wdio/globals
@wdio/jasmine-framework
@wdio/json-reporter
@wdio/junit-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/sauce-service
@wdio/shared-store-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/smoke-test-service
@wdio/spec-reporter
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/testingbot-service
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
@wdio/xvfb
webdriver
webdriverio
commit: |
bbfadfc to
3b3e671
Compare
7c7c898 to
6cc8c32
Compare
8e7579e to
0c817f3
Compare
|
Hi @christian-bromann, I seem to be able to merge without anyone reviewing this PR, but I wanted to run it past you first seeing as you were involved in the original PR. As per the description it removes Jiti again after I added it in #14664. Jiti does not play nicely with full typescript projects! The rest of the changes were just trying to get the pipeline working. I don't think that I've changed what is tested, only how the runners handle things, but I'd appreciate a check before I merge. 👍 |
This reverts most of commit 6173b79. The introduction of jiti caused significant regressions for users with complex `wdio.conf.ts` files, as reported in webdriverio#14801. This change restores the previous import mechanism to resolve these issues. It retains the attempt to load the config file and parse the tsConfigPath setting from it, with a cache-busting mechanism to prevent Node from caching failed imports. Documentation has been updated to explain the limitations of this configuration method. Fixes webdriverio#14801
An example of the warning in the test logs:
```
Promise returned by `expect(actual).rejects.toThrowError(expected)` was not awaited. Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. Please remember to await the assertion.
at /home/steve/dev/webdriverio/packages/wdio-shared-store-service/tests/client.test.ts:38:43
```
0c817f3 to
7acc113
Compare
|
Hi @christian-bromann, I've rebased on to main & resolved an issue with another flaky test. Is there anything else I can do to help get this merged? |
christian-bromann
left a comment
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.
LGTM 👍
|
Hey sh41 👋 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, |
Proposed changes
This reverts most of #14664 / commit 6173b79.
The introduction of jiti caused significant regressions for users with complex
wdio.conf.tsfiles, as reported in #14801. This change restores the previous import mechanism to resolve these issues.It retains the attempt to load the config file and parse the tsConfigPath setting from it, with a cache-busting mechanism to prevent Node from caching failed imports. Documentation has been updated to explain the limitations of this configuration method.
Fixes #14801
Types of changes
Checklist
Backport Request
v9and doesn't need to be back-ported#XXXXXFurther comments
Reviewers: @webdriverio/project-committers