Skip to content

Fix import of the softAssert library#1843

Merged
christian-bromann merged 1 commit intowebdriverio:mainfrom
segfaultincoming:main
Jun 3, 2025
Merged

Fix import of the softAssert library#1843
christian-bromann merged 1 commit intowebdriverio:mainfrom
segfaultincoming:main

Conversation

@segfaultincoming
Copy link
Copy Markdown
Contributor

Depending on your platform and configuration, it is possible that the softAssert fails to be imported, due to missing .js extension:

2025-06-02T10:26:27.134Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///C:/Path/To/Repo/wdio.conf.js: Cannot find module 'C:\Path\To\Repo\node_modules\expect-webdriverio\lib\softAssert' imported from C:\Path\To\Repo\node_modules\expect-webdriverio\lib\softAssertService.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Path\To\Repo\node_modules\expect-webdriverio\lib\softAssert' imported from C:\Path\To\Repo\node_modules\expect-webdriverio\lib\softAssertService.js

Imports with extensions are used everywhere in the project, so they should be used here as well.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jun 2, 2025

CLA Signed

  • ✅login: segfaultincoming / (dc0f95b)

The committers listed above are authorized under a signed CLA.

Copy link
Copy Markdown
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.

👍

@christian-bromann christian-bromann merged commit a66b157 into webdriverio:main Jun 3, 2025
3 checks passed
@wdio-bot
Copy link
Copy Markdown
Contributor

wdio-bot commented Jun 3, 2025

Hey segfaultincoming 👋

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 [email protected] 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants