istanbul cover mocha Code coverage command doesn't work -


i have problem running command istanbul cover _mocha throws error follows:

 no coverage information collected, exit without writing coverage information     c:\users\mhass\appdata\roaming\npm\_mocha.cmd:1     (function (exports, require, module, __filename, __dirname) { @if exist "%~dp0\node.exe" (                                                                   ^     syntaxerror: invalid or unexpected token         @ createscript (vm.js:56:10)         @ object.runinthiscontext (vm.js:97:10)         @ module._compile (module.js:542:28)         @ object.module._extensions..js (module.js:579:10)         @ object.module._extensions.(anonymous function) [as .js] (c:\users\mhass\appdata\roaming\npm\node_modules\istanbul\lib\hook.js:109:37)         @ module.load (module.js:487:32)         @ trymoduleload (module.js:446:12)         @ function.module._load (module.js:438:3)         @ function.module.runmain (module.js:604:10)         @ runfn (c:\users\mhass\appdata\roaming\npm\node_modules\istanbul\lib\command\common\run-with-cover.js:122:16) 


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

angular - DownloadURL return null in below code -