Skip to content

Commit 0b076cd

Browse files
ortacpojer
authored andcommitted
Add support for debugging Jest inside the current file (#5717)
1 parent ecb5836 commit 0b076cd

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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": "Debug Jest with current test file",
11+
"program": "${workspaceFolder}/packages/jest-cli/bin/jest.js",
12+
"args": ["--runInBand", "${file}"]
13+
}
14+
]
15+
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"args": ["run", "watch"],
8+
"command": "yarn",
9+
"identifier": "watch",
10+
"isBackground": true,
11+
"type": "process",
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
},
16+
"label": "Babel Watcher"
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)