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:
It seems that:
the ./test/e2e folder is not generated
the example test is in a wrong directory
a package.json is generated even though the project already has one
In a fresh TypeScript project that has some unit tests under
./test
I created a new wdio project using the following command:With the following answers:
Which resulted into this file structure:
It seems that:
./test/e2e
folder is not generatedpackage.json
is generated even though the project already has one