Search code examples
javascriptunit-testingtestingmocha.jsntvs

Debugging unit tests in Node Tools Visual Studio (NTVS)


Is it possible to debug mocha unit tests using Visual Studio Node Tools? I can run all my mocha tests using the command line command mocha . -- but debugging these unit tests is not possible at the moment. Is there any way to debug unit tests entirely within visual studio, or even at all?


Solution

  • See this SO post for a way to debug Mocha tests using Visual Studio.

    or even at all?

    For a more streamlined Mocha testing debug interface, I highly recommend WebStorm as the functionality is built into the IDE. Makes debugging a breeze and has a much better UI for Mocha testing.