Skip to content

(@wdio/cli): support loading of config files with mjs or mts extension#10687

Merged
christian-bromann merged 2 commits intomainfrom
cb-support-mts-config
Jul 7, 2023
Merged

(@wdio/cli): support loading of config files with mjs or mts extension#10687
christian-bromann merged 2 commits intomainfrom
cb-support-mts-config

Conversation

@christian-bromann
Copy link
Member

Proposed changes

In a CJS project one might want to use WebdriverIO in ESM. Therefor we should support loading wdio.conf.mjs and wdio.conf.mts files.

Types of changes

  • 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

Checklist

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

Further comments

n/a

Reviewers: @webdriverio/project-committers

@christian-bromann christian-bromann added the PR: Polish 💅 PRs that contain improvements on existing features label Jul 7, 2023
@christian-bromann christian-bromann merged commit 605f803 into main Jul 7, 2023
@christian-bromann christian-bromann deleted the cb-support-mts-config branch July 7, 2023 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Polish 💅 PRs that contain improvements on existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant