Skip to content

Commit 3821b65

Browse files
committed
Document how to debug individual test cases in VS Code
This is incredibly helpful because it allows for setting breakpoints, watches, single-stepping and more. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 29b1c99 commit 3821b65

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"name": "Debug Tests",
88
"program": "${workspaceRoot}/node_modules/.bin/jest",
99
"cwd": "${workspaceRoot}",
10+
// to restrict running to a particular test case, add something like "--testNamePattern=/deploy"
1011
"args": ["--runInBand", "--config", "jest.config.js"],
1112
"windows": {
1213
"program": "${workspaceFolder}/node_modules/jest/bin/jest"

0 commit comments

Comments
 (0)