I am using NightWatch for my e2e testing and want to move towards ES6 way of writing tests. I was able to do it with Babel and it worked fine but I want to use typescript. I could not find much documentation of NightWatch with TypeScript. Found some github repositories:
But these do not contain any detailed documentation around typescript.
Any help would be appreciated!
I haven't tried this, but on other TS projects, I use ts-node as the interpreter.
ts-node ./node_modules/.bin/nightwatch test.ts
You can do this with @vue/cli-plugin-e2e-nightwatch
as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With