Closed MortenGregersen closed 2 years ago
Thanks for reporting!
It seems there is a problem detecting TypeScript correctly somewhere here: https://github.com/webdriverio/create-wdio/blob/main/src/index.ts#L110
Any contributions that resolves the bug are highly appreciated. Please take a look into our contribution guidelines and let us know if you have any questions. Cheers!
fixed in #86, thanks @vigneshmohan243 π
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
7.16.13
Node.js Version
14.18.2
Mode
Standalone Mode
Which capabilities are you using?
No response
What happened?
When I initialized wdio in my project, selecting TypeScript as compiler, the CLI created a
wdio.config.ts
(config file in TypeScript). This is fine, but at the same time, it added a npm script topackage.json
which refers towdio.config.js
(config file in JavaScript).It also didn't take into account, where the
wdio.config.js/ts
was located. Even though I used default values for the initialization (expect using Jasmine and TypeScript), it thought mywdio.config.js/ts
was located in the root of the project, but itself created it in./test/
.What is your expected behavior?
I expected that the CLI would know what file extension the wdio config would have, and where it would be created, so the npm script in
package.json
would be correct.How to reproduce the bug.
npm init wdio .
jasmine
TypeScript
package.json
would be"wdio": "wdio run wdio.conf.js"
Relevant log output
Code of Conduct
Is there an existing issue for this?