Skip to content

[🐛 Bug]: Updating wording on install command when installing dependencies in config wizard #12071

@Stalinko

Description

@Stalinko

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

latest

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

I'm using the standard installer through yarn:

yarn create wdio .

On the last step it asks if I want to run "npm install". I say "no" because I want to run "yarn" instead..
Then it creates the package.json with only one dependency:

{
  "name": "e2e",
  "type": "module",
  "devDependencies": {
    "@wdio/cli": "^8.29.0"
  },
  "scripts": {
    "wdio": "wdio run ./wdio.conf.js"
  }
}

Obviously the project won't work because it misses any other necessary packages.
If you try to run yarn run wdio it will fail.

However if you say "yes" on the last step it won't only run "npm install", but will also prefill the package.json with all the necessary packages selected during install.

What is your expected behavior?

It must generate complete package.json with all the selected packages even if you say "no" to "Run npm install" on the last step of the wizard.

How to reproduce the bug.

Just run yarn create wdio . and press N on the last step.
Then look at your package.json

Relevant log output

-

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

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions