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.

0
2 comments

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

1
Avatar
Permanently deleted user

Thank you Elena, this helped indeed.

1

Please sign in to leave a comment.