Skip to content

[🐛 Bug]: 8.29.0 introduces updateSnapshots to config but causes bug with --user cli argument #12078

@HermansJarno

Description

@HermansJarno

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.29.0

Node.js Version

18.18.2

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

At our project we primarily start our tests from command line with wdio run config -- --user=... --key=...
Since version 8.29.0 we get the message: Type check for option "updateSnapshots" failed: the "updateSnapshots" options needs to be one of "all", "new", "none".

During debugging we see that when --user is passed to the cli as an argument, that the config option updateSnapshots is set with this value. When --user is left out from cli, updateSnapshots keeps it value.

What is your expected behavior?

updateSnapshots does not get updated by --user

How to reproduce the bug.

Add option --user to the wdio run command.

Relevant log output

Error: Type check for option "updateSnapshots" failed: the "updateSnapshots" options needs to be one of "all", "new", "none"

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions