Skip to content

Instantly share code, notes, and snippets.

@Lodo4ka
Created December 11, 2019 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lodo4ka/f60f858137579bcaa01f4b8eab45b7a6 to your computer and use it in GitHub Desktop.
Save Lodo4ka/f60f858137579bcaa01f4b8eab45b7a6 to your computer and use it in GitHub Desktop.
debuging mocha in vs code from node js
{
// 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