Auto-launching Chrome to Debug Mocha Tests on Mac

Are you tired of cutting and pasting URLs from node --inspect to launch Chrome? This is what happens today: $ alias mocha="node_modules/mocha/bin/mocha" $ alias mocha-debug="mocha --debug-brk --inspect --compilers ts:ts-node/register --recursive test/**/*-spec.ts" $ mocha-debug Debugger listening on port 9229. Warning: This is an experimental feature and could change at any time. To start debugging, open the following URL... Continue Reading →

Blog at WordPress.com.

Up ↑