Skip to content

Commit 7dd1dc0

Browse files
committed
launch.json: add test suite picker
1 parent 04986b2 commit 7dd1dc0

File tree

8 files changed

+80
-16
lines changed

8 files changed

+80
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["rioj7.command-variable"]
3+
}

exercises/04.debugging/02.problem.debugger/.vscode/launch.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "node-terminal",
65
"name": "Run Vitest Browser",
6+
"type": "node-terminal",
77
"request": "launch",
8-
"command": "npm test -- --inspect-brk --browser --no-file-parallelism",
8+
"command": "npm test ${input:pickTestSuite} -- --inspect-brk --browser --no-file-parallelism",
99
"env": {
1010
"DEBUG": "true"
1111
}
1212
},
1313
{
14+
"name": "Attach to Vitest Browser",
1415
"type": "chrome",
1516
"request": "attach",
16-
"name": "Attach to Vitest Browser",
17-
"port": 9229
17+
"port": 9229,
18+
"timeout": 10000
19+
}
20+
],
21+
"inputs": [
22+
{
23+
"id": "pickTestSuite",
24+
"type": "command",
25+
"command": "extension.commandvariable.file.pickFile",
26+
"args": {
27+
"description": "Pick a test suite",
28+
"include": "**/*.browser.test.{ts,tsx}",
29+
"multiPick": true
30+
}
1831
}
1932
],
2033
"compounds": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["rioj7.command-variable"]
3+
}

exercises/04.debugging/02.solution.debugger/.vscode/launch.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "node-terminal",
65
"name": "Run Vitest Browser",
6+
"type": "node-terminal",
77
"request": "launch",
8-
"command": "npm test -- --inspect-brk --browser --no-file-parallelism",
8+
"command": "npm test ${input:pickTestSuite} -- --inspect-brk --browser --no-file-parallelism",
99
"env": {
1010
"DEBUG": "true"
1111
}
1212
},
1313
{
14+
"name": "Attach to Vitest Browser",
1415
"type": "chrome",
1516
"request": "attach",
16-
"name": "Attach to Vitest Browser",
17-
"port": 9229
17+
"port": 9229,
18+
"timeout": 10000
19+
}
20+
],
21+
"inputs": [
22+
{
23+
"id": "pickTestSuite",
24+
"type": "command",
25+
"command": "extension.commandvariable.file.pickFile",
26+
"args": {
27+
"description": "Pick a test suite",
28+
"include": "**/*.browser.test.{ts,tsx}",
29+
"multiPick": true
30+
}
1831
}
1932
],
2033
"compounds": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["rioj7.command-variable"]
3+
}

exercises/04.debugging/03.problem.breakpoints/.vscode/launch.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "node-terminal",
65
"name": "Run Vitest Browser",
6+
"type": "node-terminal",
77
"request": "launch",
8-
"command": "npm test -- --inspect-brk --browser --no-file-parallelism",
8+
"command": "npm test ${input:pickTestSuite} -- --inspect-brk --browser --no-file-parallelism",
99
"env": {
1010
"DEBUG": "true"
1111
}
1212
},
1313
{
14+
"name": "Attach to Vitest Browser",
1415
"type": "chrome",
1516
"request": "attach",
16-
"name": "Attach to Vitest Browser",
17-
"port": 9229
17+
"port": 9229,
18+
"timeout": 10000
19+
}
20+
],
21+
"inputs": [
22+
{
23+
"id": "pickTestSuite",
24+
"type": "command",
25+
"command": "extension.commandvariable.file.pickFile",
26+
"args": {
27+
"description": "Pick a test suite",
28+
"include": "**/*.browser.test.{ts,tsx}",
29+
"multiPick": true
30+
}
1831
}
1932
],
2033
"compounds": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["rioj7.command-variable"]
3+
}

exercises/04.debugging/03.solution.breakpoints/.vscode/launch.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "node-terminal",
65
"name": "Run Vitest Browser",
6+
"type": "node-terminal",
77
"request": "launch",
8-
"command": "npm test -- --inspect-brk --browser --no-file-parallelism",
8+
"command": "npm test ${input:pickTestSuite} -- --inspect-brk --browser --no-file-parallelism",
99
"env": {
1010
"DEBUG": "true"
1111
}
1212
},
1313
{
14+
"name": "Attach to Vitest Browser",
1415
"type": "chrome",
1516
"request": "attach",
16-
"name": "Attach to Vitest Browser",
17-
"port": 9229
17+
"port": 9229,
18+
"timeout": 10000
19+
}
20+
],
21+
"inputs": [
22+
{
23+
"id": "pickTestSuite",
24+
"type": "command",
25+
"command": "extension.commandvariable.file.pickFile",
26+
"args": {
27+
"description": "Pick a test suite",
28+
"include": "**/*.browser.test.{ts,tsx}",
29+
"multiPick": true
30+
}
1831
}
1932
],
2033
"compounds": [

0 commit comments

Comments
 (0)