Webstorm 11 - Run a single Mocha test Follow
I see running a single Mocha test should be possible in Webstorm 11.
But I don't see anything when I righ-click a test name :
Am I missing something?
Thanks in advance.
Please sign in to leave a comment.
It's possible, but you need creating the corresponding run configuration:
It also works for me when using right-click menu:
But seems your specs are written in ES6, are they?
Using a Mocha specific Debug Configuration, I'm indeed able to see the Run/Debug commands in the context menu.
But I'm using TypeScript and when I select the Run command from this context menu, I get an error :
Is there a way to make this work using TypeScript?
Indeed, it works when I right-click and choose "run" from the ".js" file instead of the ".ts" file.