xolvio / chimp

Tooling that helps you do quality, faster.
MIT License
798 stars 139 forks source link

--debugMocha not working with node 8.7 #660

Closed brucejo75 closed 5 years ago

brucejo75 commented 6 years ago

Trying to debug my mocha scripts. Used to work with node-inspector, but now with chrome debugging it does not work for me. Any workarounds?

Unless I hear better: I will fork chimp and submit a PR for --inspectMocha && --inspectBrkMocha options.

Environment

Results

>npm run chimp-dbg

> MERIS@1.0.0 chimp-dbg E:\mroot\meris
> chimp --debugMocha --ddp=http://localhost:3080 --mocha --chai --path=tests

(node:19168) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

Master Chimp and become a testing Ninja! Check out our course: http://bit.ly/2btQaFu

[chimp] Running...
(node:9412) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
Mocha failed
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! MERIS@1.0.0 chimp-dbg: `chimp --debugMocha --ddp=http://localhost:3080 --mocha --chai --path=tests`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the MERIS@1.0.0 chimp-dbg script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Bruce\AppData\Roaming\npm-cache\_logs\2017-10-25T20_32_02_748Z-debug.log

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

samhatoum commented 6 years ago

Thank you for doing this, I'll accept the PR

samhatoum commented 5 years ago

This issue is being tracked in Chimpy https://github.com/TheBrainFamily/chimpy/issues