The only way I managed to make istanbul work is using ./node_modules/.bin/_mocha.
# works
babel-node node_modules/.bin/istanbul cover _mocha -- test
# does not work
babel-node node_modules/.bin/istanbul cover mocha -- test
However, it cannot find where it is documented. I have only found it mentioned in issues such as this, https://github.com/gotwarlost/istanbul/issues/44.
mocha is a wrapper for _mocha -- all the real work happens in _mocha. Here's a link to the Mocha executables code. Maybe that helps?
what @apowers313 said.
using ./node_modules/.bin/_mocha instead of ./node_modules/.bin/mocha in the debug properties in vscode helped the debugger to stop at my breakpoints, otherwise it would ignore them. Just wanted to share that information.
Any update on this? mocha is still broken with breakpoints.
Most helpful comment
using
./node_modules/.bin/_mochainstead of./node_modules/.bin/mochain the debug properties invscodehelped the debugger to stop at my breakpoints, otherwise it would ignore them. Just wanted to share that information.