Closed piotrblasiak closed 1 year ago
I'm not sure what setup you use but since the wdio config is written using typescript, it will therefore use ts-node. I think that things will work when you change the config to be javascript
I'm not sure what setup you use but since the wdio config is written using typescript, it will therefore use ts-node. I think that things will work when you change the config to be javascript
Ok, thanks - and how can I make sure babel is being run, and not ts-node if both are installed?
I've also updated the test project with a test that shows that babel, even if it is being run - doesn't seem to run any of its plugins?
Okay so I have created a dummy project locally and if you want to use Babel + Typescript you can have .ts files but you will have to transpile the files using babel and then run the tests with the output out of babel
Basically do the same as this setup but for your tests: https://github.com/Microsoft/TypeScript-Babel-Starter
The end would look like:
wdio run ./lib/wdio.conf.js
Oh, I see. Ok makes sense, altho I was hoping to avoid that. Thanks!
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?
According to the documentation (https://webdriver.io/docs/babel/) having a babel.config.js should enable babel transpiling, but when I do it still asks for ts-node. Is babel still supported? And if both babel and ts-node are present (because the project needs it), how do I make sure only babel is being used? I need babel for its plugins (relay) that are required to compile some graphql tags.
What is your expected behavior?
No response
How to reproduce the bug.
https://github.com/attendium/wdio-babel-bug
npm run test
Relevant log output
Code of Conduct
Is there an existing issue for this?