|
9 | 9 | "args": [ |
10 | 10 | "--testTimeout=100000", |
11 | 11 | "--findRelatedTests", |
| 12 | + "--runInBand", |
| 13 | + "--verbose", |
12 | 14 | "${relativeFile}", |
13 | 15 | "${input:additionalJestArgs}" |
14 | 16 | ], |
15 | 17 | "console": "integratedTerminal", |
16 | 18 | "internalConsoleOptions": "neverOpen", |
17 | 19 | "skipFiles": ["<node_internals>/**"] |
18 | 20 | }, |
19 | | - |
20 | 21 | { |
21 | | - "name": "Jest - run _all_ tests for package of the current file", |
| 22 | + "name": "Jest - run _all_ tests for current file's package", |
22 | 23 | "type": "node", |
23 | 24 | "request": "launch", |
24 | 25 | "program": "${workspaceFolder}/node_modules/.bin/jest", |
25 | 26 | "args": [ |
26 | 27 | "--testTimeout=100000", |
| 28 | + "--runInBand", |
27 | 29 | "${input:additionalJestArgs}" |
28 | 30 | ], |
29 | 31 | "console": "integratedTerminal", |
30 | 32 | "internalConsoleOptions": "neverOpen", |
| 33 | + "skipFiles": ["<node_internals>/**"], |
31 | 34 | "cwd": "${fileDirname}" |
32 | 35 | }, |
33 | 36 | { |
|
38 | 41 | "runtimeArgs": ["-r", "ts-node/register"], |
39 | 42 | "cwd": "${workspaceRoot}", |
40 | 43 | "internalConsoleOptions": "openOnSessionStart" |
41 | | - }, |
| 44 | + } |
42 | 45 | ], |
43 | 46 | "inputs": [ |
44 | 47 | { |
45 | 48 | "id": "additionalJestArgs", |
46 | 49 | "type": "pickString", |
47 | | - "description": "Select additional Jest arguments (optional)", |
| 50 | + "description": "(Optional) Select additional Jest arguments", |
48 | 51 | "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" } |
53 | 57 | ], |
54 | 58 | "default": "" |
| 59 | + }, |
| 60 | + { |
| 61 | + "id": "packageName", |
| 62 | + "type": "pickString", |
| 63 | + "description": "Select a package to debug", |
| 64 | + "options": ["@segment/analytics-", "package-b", "package-c"] |
55 | 65 | } |
56 | 66 | ] |
57 | 67 | } |
0 commit comments