Created
August 10, 2017 07:15
-
-
Save snovakovic/3c5d7aa8751e082e2592b0b47a054ee7 to your computer and use it in GitHub Desktop.
vscode launch.json configuration for debugging mocha tests
This file contains hidden or 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
{ | |
// 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