Skip to content

Commit d1f3082

Browse files
committed
Adding shim for debugging node tests using vscode.
1 parent 09b8342 commit d1f3082

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.vscode/launch.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Mocha Tests",
8+
"cwd": "${workspaceRoot}",
9+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
10+
"windows": {
11+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
12+
},
13+
"runtimeArgs": [
14+
"-u",
15+
"tdd",
16+
"--timeout",
17+
"999999",
18+
"--colors",
19+
"${workspaceRoot}/src/node/test"
20+
],
21+
"internalConsoleOptions": "openOnSessionStart"
22+
},
23+
{
24+
"type": "node",
25+
"request": "attach",
26+
"name": "Attach to Process",
27+
"port": 5858
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)