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.