Run single Test with Configuration in Javascript
I want to run Mocha tests written in ES6. They need transpilation before the execution, which can be done via the options `--require babel-core/register --require babel-polyfill`. I managed to create a Run Profile with these options, however, I would also like to be able to click on a green "play" icon next to a test definition in order to run with this profile. Is this possible? Thanks a lot.
Please sign in to leave a comment.
Yes, it's possible
- open Run > Edit Configurations
- expand Templates node, select Mocha there
- in Mocha configuration template, specify the desired options
All new Mocha configurations will be created with these options
Thank you Elena, this helped indeed.