Debugging in VSCode, I noticed I couldn’t get my mocha tests to print their output or debug correctly.

Turned out it was because I was using the wrapper. What I needed to do was run the mocha executable (in node_modules/mocha/bin/_mocha) directly.

Frankly, at the moment I don’t find it worth the time it would take to understand why that is of consequence. I’m sure it has to do with processes and streams and all that fun stuff.

Categories: Node.js

Leave a Reply