Skip to content

Commit 0ba4abb

Browse files
committed
Add support for debugging tests in VS Code
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5addaa2 commit 0ba4abb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Debug Tests",
8+
"program": "${workspaceRoot}/node_modules/.bin/jest",
9+
"cwd": "${workspaceRoot}",
10+
// to restrict running to a particular test case, add something like "--testNamePattern=webook payloads"
11+
"args": ["--runInBand", "--config", "jest.config.js"],
12+
"windows": {
13+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
14+
}
15+
},
416
{
517
"name": "Attach to Node Functions",
618
"type": "node",

0 commit comments

Comments
 (0)