Last active
June 14, 2019 18:51
-
-
Save ra9r/1f072064af2a6dc72f30c3928d886122 to your computer and use it in GitHub Desktop.
Mocha Launcher for VSC #vsc #mocha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Run Mocha", | |
"type": "node", | |
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | |
"stopOnEntry": false, | |
"args": ["--no-timeouts", "test"], | |
"cwd": "${workspaceRoot}", | |
"runtimeExecutable": null, | |
"env": { | |
"NODE_ENV": "development" | |
} | |
}, | |
{ | |
"name": "Attach", | |
"type": "node", | |
"request": "attach", | |
"port": 5858, | |
"address": "localhost", | |
"restart": false, | |
"sourceMaps": false, | |
"outDir": null, | |
"localRoot": "${workspaceRoot}", | |
"remoteRoot": null | |
}, | |
{ | |
"name": "Attach to Process", | |
"type": "node", | |
"request": "attach", | |
"processId": "${command.PickProcess}", | |
"port": 5858, | |
"sourceMaps": false, | |
"outDir": null | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is how I've setup Mocha to run in Visual Studio Code to also support breakpoints. It doesn't require any outside steps like running
mocha --debug-brk
or the like.