Skip to content

Commit e15d769

Browse files
authored
Add launch.json to run tests in VSCode debugger (#358)
1 parent 1751318 commit e15d769

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.vscode/launch.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Jest debug current test file",
11+
"skipFiles": ["<node_internals>/**"],
12+
"program": "${workspaceFolder}/node_modules/.bin/jest",
13+
"args": ["${fileBasenameNoExtension}", "--watch"],
14+
"console": "integratedTerminal",
15+
"disableOptimisticBPs": true,
16+
"windows": {
17+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
18+
}
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)