Skip to content

Commit cb2d28e

Browse files
Add vscode launch script for debugging Mocha tests (#554)
* Add vscode script for debugging tests * Remove default comment from launch.json
1 parent 6750571 commit cb2d28e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Mocha Tests",
8+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
9+
"args": [
10+
"-u",
11+
"bdd",
12+
"--timeout",
13+
"999999",
14+
"--colors",
15+
"--opts",
16+
"mocha.opts",
17+
"--exit",
18+
"${workspaceRoot}/{tests,src}/**/*.test.js"
19+
],
20+
"internalConsoleOptions": "openOnSessionStart",
21+
"env": {
22+
"NODE_ENV": "test"
23+
}
24+
}
25+
]
26+
}

0 commit comments

Comments
 (0)