webdriverio / create-wdio

One-line installer for WebdriverIO
https://webdriver.io
MIT License
21 stars 10 forks source link

Wrong file structure in existing TypeScript projects #130

Closed christian-bromann closed 1 year ago

christian-bromann commented 2 years ago

In a fresh TypeScript project that has some unit tests under ./test I created a new wdio project using the following command:

$ npm init wdio ./test

With the following answers:

? Where is your automation backend located? On my local machine
? Which framework do you want to use? mocha
? Do you want to use a compiler? TypeScript (https://www.typescriptlang.org/)
? Where are your test specs located? ./e2e
? Do you want WebdriverIO to autogenerate some test files? Yes
? Do you want to use page objects (https://martinfowler.com/bliki/PageObject.html)? No
? Which reporter do you want to use? spec
? Do you want to add a plugin to your test setup?
? Do you want to add a service to your test setup? vscode
? What is the base url? http://localhost
? Do you want me to run `npm install` Yes

Which resulted into this file structure: Screenshot 2022-04-06 at 19 02 07

It seems that:

christian-bromann commented 1 year ago

We have improved the wizard capabilities in the latest beta release. It includes a fix for this as well.