Search code examples
debuggingidewebstorm

WebStorm Run icon missing in the gutter


enter image description here

I was looking something like this: enter image description here

Here is my file structures enter image description here enter image description here


Solution

  • The logic used for determining what test runner is available for a given test file is based on dependencies declarations in package.json. Declaring "mocha" as a dependency in <project root>/package.json should enable mocha runner in <project root>/**/* files. Note that if Mocha is not installed locally/included in package.json, you can create a Mocha run configuration with All in directory selected and specify a directory where your spec files are located. In this case, right-click on a test file inside this directory will suggest to run with Mocha.