Using Mocha with IntelliJ

guy mograbi picture guy mograbi · Sep 3, 2014 · Viewed 7.2k times · Source

I am trying to configure Mocha for IntelliJ, and when Googling, I keep finding posts that say "install the mocha plugin".

I don't have a Mocha plugin. I go to Settings → Plugins → (install JetBrains plugin) / (browse repositories) but when I type mocha it comes up empty.

(Side question: can anyone tell me the difference between the menu options above, please?)

What am I missing?

These are the posts I've run into so far:

Answer

Bill Poitras picture Bill Poitras · Oct 17, 2014

Mocha integration is included with another plugin (I'm going to guess the NodeJS plugin). If you install that plugin, and then go to manually add a Run Configuration, mocha will be an option . In the Webstorm 7.0.2 blog post, there is an embedded YouTube video which shows you how to configure a Mocha test directory:

http://blog.jetbrains.com/webstorm/2013/11/webstorm-7-0-2-is-available/