Skip to content

Commit 8b9e864

Browse files
Support debugging Mocha
Add launch configuration for VS Code to debug Mocha.
1 parent 68318dc commit 8b9e864

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Test",
8+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
9+
"args": [
10+
"--reporter",
11+
"dot",
12+
"--slow",
13+
"5000",
14+
"--colors",
15+
"${workspaceFolder}/test/**/*.js",
16+
],
17+
"internalConsoleOptions": "openOnSessionStart",
18+
"skipFiles": [
19+
"<node_internals>/**"
20+
]
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)