Skip to content

Instantly share code, notes, and snippets.

@snovakovic
Created August 10, 2017 07:15
Show Gist options
  • Save snovakovic/3c5d7aa8751e082e2592b0b47a054ee7 to your computer and use it in GitHub Desktop.
Save snovakovic/3c5d7aa8751e082e2592b0b47a054ee7 to your computer and use it in GitHub Desktop.
vscode launch.json configuration for debugging mocha tests
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run Tests",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"./test/*.js",
"-u", "tdd",
"--timeout", "999999",
"--colors"
],
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true
},
{
"name": "Run Publish",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/publish",
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment