Skip to content

Commit

Permalink
chore: add vscode launcher for mocha debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltford committed Jun 7, 2024
1 parent a46c2d5 commit 8acb226
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// 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": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\index.js"
}, {
"name": "Mocha: Current File",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-s 0",
"--file",
"${relativeFile}",
"--no-timeout"
],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
]
}
]
}

0 comments on commit 8acb226

Please sign in to comment.