Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@sh41
Copy link
Contributor

@sh41 sh41 commented Oct 4, 2025

Proposed changes

This reverts most of #14664 / commit 6173b79.

The introduction of jiti caused significant regressions for users with complex wdio.conf.ts files, 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

  • Polish (an improvement for an existing feature)
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improvements to the project's docs)
  • Specification changes (updates to WebDriver command specifications)
  • Internal updates (everything related to internal scripts, governance documentation and CI files)

Checklist

  • [x ] I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Backport Request

  • This change is solely for v9 and doesn't need to be back-ported
  • Back-ported PR at #XXXXX

Further comments

Reviewers: @webdriverio/project-committers

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 4, 2025

Open in StackBlitz

create-wdio

npm i https://pkg.pr.new/webdriverio/webdriverio/create-wdio@14802

eslint-plugin-wdio

npm i https://pkg.pr.new/webdriverio/webdriverio/eslint-plugin-wdio@14802

@wdio/allure-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/allure-reporter@14802

@wdio/appium-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/appium-service@14802

@wdio/browser-runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/browser-runner@14802

@wdio/browserstack-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/browserstack-service@14802

@wdio/cli

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/cli@14802

@wdio/concise-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/concise-reporter@14802

@wdio/config

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/config@14802

@wdio/cucumber-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/cucumber-framework@14802

@wdio/dot-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/dot-reporter@14802

@wdio/firefox-profile-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/firefox-profile-service@14802

@wdio/globals

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/globals@14802

@wdio/jasmine-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/jasmine-framework@14802

@wdio/json-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/json-reporter@14802

@wdio/junit-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/junit-reporter@14802

@wdio/lighthouse-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/lighthouse-service@14802

@wdio/local-runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/local-runner@14802

@wdio/logger

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/logger@14802

@wdio/mocha-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/mocha-framework@14802

@wdio/protocols

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/protocols@14802

@wdio/repl

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/repl@14802

@wdio/reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/reporter@14802

@wdio/runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/runner@14802

@wdio/sauce-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/sauce-service@14802

@wdio/shared-store-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/shared-store-service@14802

@wdio/smoke-test-cjs-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-cjs-service@14802

@wdio/smoke-test-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-reporter@14802

@wdio/smoke-test-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-service@14802

@wdio/spec-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/spec-reporter@14802

@wdio/static-server-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/static-server-service@14802

@wdio/sumologic-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/sumologic-reporter@14802

@wdio/testingbot-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/testingbot-service@14802

@wdio/types

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/types@14802

@wdio/utils

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/utils@14802

@wdio/webdriver-mock-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/webdriver-mock-service@14802

@wdio/xvfb

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/xvfb@14802

webdriver

npm i https://pkg.pr.new/webdriverio/webdriverio/webdriver@14802

webdriverio

npm i https://pkg.pr.new/webdriverio/webdriverio@14802

commit: d5c378e

@sh41 sh41 force-pushed the tsConfigPath-in-wdio.conf branch from bbfadfc to 3b3e671 Compare October 8, 2025 12:01
@sh41 sh41 changed the title 🐛 Carry on searching for tsconfig.json if parsing the config file fails. 🐛⏪️ revert: "tsConfigPath in wdio.conf (#14664)" Oct 8, 2025
@sh41 sh41 force-pushed the tsConfigPath-in-wdio.conf branch 3 times, most recently from 7c7c898 to 6cc8c32 Compare October 8, 2025 13:30
@sh41 sh41 requested a review from a team as a code owner October 8, 2025 15:28
@sh41 sh41 force-pushed the tsConfigPath-in-wdio.conf branch 2 times, most recently from 8e7579e to 0c817f3 Compare October 8, 2025 18:01
@sh41
Copy link
Contributor Author

sh41 commented Oct 8, 2025

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. 👍

sh41 added 7 commits November 4, 2025 14:26
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
```
@sh41 sh41 force-pushed the tsConfigPath-in-wdio.conf branch from 0c817f3 to 7acc113 Compare November 4, 2025 14:27
@sh41
Copy link
Contributor Author

sh41 commented Nov 4, 2025

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?

Copy link
Member

@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.

LGTM 👍

@christian-bromann christian-bromann merged commit e55fec2 into webdriverio:main Nov 14, 2025
59 checks passed
@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Nov 14, 2025
@wdio-bot
Copy link
Contributor

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.
⚠️ You seemed to have committed using an email address ending up with @users.noreply.github.com, if you don't receive the email please feel free to reach out to us at expense@webdriver.io or in the contributing channel on Discord.

We are looking forward to more contributions from you in the future 🙌

Have a nice day,
The WebdriverIO Team 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Expensable $35 💸 PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Starting the runner fails if there are path aliases in wdio.conf.ts & tsConfigPath is not specified

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.