WebStorm 2019.3.4 upgrade unable to run NodeJS Mocha debugger

Yesterday, I upgraded WebStorm 2019.3.4, full build details posted below.

I was able to run NodeJS Mocha debugger with previous version of WebStorm before upgrade. Now it fails with Unknown "reporter"

/usr/local/Cellar/node/12.12.0/bin/node /Users/jeffrey.tanner/github/ACT/act-archive-microsoft-sharepoint/node_modules/mocha/bin/_mocha -r ts-node/register --timeout 0 --ui bdd --reporter /Applications/WebStorm.app/Contents/plugins/NodeJS/js/mocha-intellij/lib/mochaIntellijReporter.js test/*.ts
Debugger listening on ws://127.0.0.1:53236/969d8089-a3ca-4f91-b669-10886ce1854c
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
mocha inspect [spec..]

Run tests with Mocha

...

✖ ERROR: Unknown "reporter": /Applications/WebStorm.app/Contents/plugins/NodeJS/js/mocha-intellij/lib/mochaIntellijReporter.js

I was able to run NodeJS Mocha debugger with previous version of WebStorm before upgrade.

File does exist:

/Applications/WebStorm.app/Contents/plugins/NodeJS/js/mocha-intellij/lib/mochaIntellijReporter.js

package.json devDependencies for mocha used

@types/mocha": "^7.0.2",
...
"mocha": "^7.1.1"

 

WebStorm 2019.3.4
Build #WS-193.6911.28, built on March 18, 2020
...
Runtime version: 11.0.5+10-b520.38 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.balloon.shadow.size=0, js.debugger.webconsole=false
Non-Bundled Plugins: BashSupport, com.chrisrm.idea.MaterialThemeUI

Example Mocha Configuration

5 comments
Comment actions Permalink

Works fine for me in 2019.3.4 using similar setup:

 

 

does the issue only occur on debugging (i.e. does Run work)? Can you reproduce the issue in a new project?

0
Comment actions Permalink

Thank you for your reply, much appreciated

  • Same error occurs for both Debug and Run.
  • Can reproduce in a new Project
0
Comment actions Permalink

Please could you share a project the issue can be reproduced in?

0
Comment actions Permalink

That might not be possible. The project's package.json has several proprietary custom modules, internally accessible dependencies. I will see what I can produce for a "Hello World" example.

0
Comment actions Permalink

Please keep me posted:)

0

Please sign in to leave a comment.