Skip to content

Commit 37ae84d

Browse files
committed
VS code settings for debug in nodemon and jest
1 parent d35f25f commit 37ae84d

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.vscode/launch.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch nodemon in debug",
6+
"type": "node",
7+
"request": "launch",
8+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/nodemon",
9+
"program": "${workspaceFolder}/server.js",
10+
"restart": true,
11+
"protocol": "inspector",
12+
"console": "integratedTerminal",
13+
"internalConsoleOptions": "neverOpen",
14+
"port": 9230
15+
},
16+
{
17+
"name": "Launch mocha test in debug",
18+
"request": "launch",
19+
"runtimeArgs": ["run", "mocha", "${relativeFile}"],
20+
"runtimeExecutable": "npm",
21+
"skipFiles": ["<node_internals>/**"],
22+
"type": "node",
23+
"env": {
24+
"PORT": "3111"
25+
}
26+
},
27+
{
28+
"name": "Launch jest in debug",
29+
"type": "node",
30+
"request": "launch",
31+
"cwd": "${workspaceFolder}",
32+
"runtimeArgs": [
33+
"--inspect-brk",
34+
"node_modules/.bin/jest",
35+
"--runInBand",
36+
"--config=jest.config.js",
37+
"${file}"
38+
],
39+
"port": 9231
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)