Skip to content

Commit 1bf18d4

Browse files
committed
wip
1 parent 500c059 commit 1bf18d4

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.vscode/launch.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,28 @@
99
"args": [
1010
"--testTimeout=100000",
1111
"--findRelatedTests",
12+
"--runInBand",
13+
"--verbose",
1214
"${relativeFile}",
1315
"${input:additionalJestArgs}"
1416
],
1517
"console": "integratedTerminal",
1618
"internalConsoleOptions": "neverOpen",
1719
"skipFiles": ["<node_internals>/**"]
1820
},
19-
2021
{
21-
"name": "Jest - run _all_ tests for package of the current file",
22+
"name": "Jest - run _all_ tests for current file's package",
2223
"type": "node",
2324
"request": "launch",
2425
"program": "${workspaceFolder}/node_modules/.bin/jest",
2526
"args": [
2627
"--testTimeout=100000",
28+
"--runInBand",
2729
"${input:additionalJestArgs}"
2830
],
2931
"console": "integratedTerminal",
3032
"internalConsoleOptions": "neverOpen",
33+
"skipFiles": ["<node_internals>/**"],
3134
"cwd": "${fileDirname}"
3235
},
3336
{
@@ -38,20 +41,27 @@
3841
"runtimeArgs": ["-r", "ts-node/register"],
3942
"cwd": "${workspaceRoot}",
4043
"internalConsoleOptions": "openOnSessionStart"
41-
},
44+
}
4245
],
4346
"inputs": [
4447
{
4548
"id": "additionalJestArgs",
4649
"type": "pickString",
47-
"description": "Select additional Jest arguments (optional)",
50+
"description": "(Optional) Select additional Jest arguments",
4851
"options": [
49-
"--runInBand",
50-
"--watch",
51-
"--coverage",
52-
"--updateSnapshot",
52+
{ "label": "none", "value": "" },
53+
{ "label": "", "value": "--watch" },
54+
{ "label": "", "value": "--updateSnapshot" },
55+
{ "label": "", "value": "--coverage" },
56+
{ "label": "", "value": "--runInBand" }
5357
],
5458
"default": ""
59+
},
60+
{
61+
"id": "packageName",
62+
"type": "pickString",
63+
"description": "Select a package to debug",
64+
"options": ["@segment/analytics-", "package-b", "package-c"]
5565
}
5666
]
5767
}

0 commit comments

Comments
 (0)