Monthly Archive: September 2017

0

Debug mocha using visual studio code

Add the fol­low­ing con­fig­u­ra­tion in your launch.json { “name”: “Run mocha”, “type”: “node”, “request”: “launch”, “pro­gram”: “${workspaceRoot}/node_modules/mocha/bin/mocha”, “sto­pO­nEn­try”: false, “args”: [ “test/**/*.js”, “–inspect”, “–debug-brk”, “–no-timeouts” ], “cwd”: “${work­space­Root}”, “run­time­Ex­e­cutable”: null, “env”: { “NODE_ENV”: “testing”…