Skip to content

Instantly share code, notes, and snippets.

@steprobe
Last active January 6, 2024 14:24
Show Gist options
  • Save steprobe/e666c16272ed942847dea8d4b6ab6902 to your computer and use it in GitHub Desktop.
Save steprobe/e666c16272ed942847dea8d4b6ab6902 to your computer and use it in GitHub Desktop.
Vimspector + mocha
...
"configuration": {
"request": "launch",
"name": "Debug mocha Test",
"type": "node",
"program": "${workspaceRoot}/node_modules/mocha/bin/mocha",
"env": {
"NODE_ENV": "test"
},
"args": [
"--debug-brk",
"--inspect",
"${workspaceRoot}",
"--recursive test",
"--require @babel/register",
"--exit",
"--timeout 5000"
],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**/*.js"],
"internalConsoleOptions": "neverOpen",
"port": 9229
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment