Skip to content

Instantly share code, notes, and snippets.

@staltz staltz/how.md

Last active Oct 26, 2017
Embed
What would you like to do?
How to debug Mocha tests written in Babel, running only in Node.js

Run this in one shell

./node_modules/.bin/mocha --debug-brk --compilers js:babel-register test/node

Then this in another shell

node-inspector

Then open the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.