Created
December 11, 2019 12:18
-
-
Save Lodo4ka/f60f858137579bcaa01f4b8eab45b7a6 to your computer and use it in GitHub Desktop.
debuging mocha in vs code from node js
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 attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha All", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"args": [ | |
"--timeout" | |
, "999999" | |
, "--colors" | |
, "'${workspaceFolder}/{,!(node_modules)/}*/*.test.js'" | |
], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
}, | |
{ | |
"type": "node" | |
, "request": "launch" | |
, "name": "Mocha Current File" | |
, "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha" | |
, "args": [ | |
"--timeout" | |
, "999999" | |
, "--colors" | |
, "${file}" | |
] | |
, "console": "integratedTerminal" | |
, "internalConsoleOptions": "neverOpen" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment