Istanbul: What is _mocha?

Created on 6 Sep 2015  路  4Comments  路  Source: gotwarlost/istanbul

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.

Most helpful comment

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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NiGhTTraX picture NiGhTTraX  路  36Comments

asciidisco picture asciidisco  路  47Comments

schulzch picture schulzch  路  151Comments

ouhouhsami picture ouhouhsami  路  16Comments

Raynos picture Raynos  路  27Comments