|
5 | 5 | "type": "node",
|
6 | 6 | "request": "launch",
|
7 | 7 | "name": "Vitest Current File",
|
8 |
| - "program": "${workspaceFolder}/node_modules/.bin/vitest", |
9 |
| - "args": ["${fileBasenameNoExtension}", "--config", "vite.config.ts"], |
| 8 | + "runtimeExecutable": "pnpm", |
| 9 | + "runtimeArgs": [ |
| 10 | + "exec", |
| 11 | + "vitest", |
| 12 | + "${fileBasenameNoExtension}", |
| 13 | + "--config", |
| 14 | + "vite.config.mts" |
| 15 | + ], |
| 16 | + "console": "integratedTerminal", |
| 17 | + "internalConsoleOptions": "neverOpen" |
| 18 | + }, |
| 19 | + { |
| 20 | + "type": "node", |
| 21 | + "request": "launch", |
| 22 | + "name": "Debug TypeScript Current File", |
| 23 | + "runtimeArgs": ["-r", "tsx"], |
| 24 | + "args": ["${relativeFile}"], |
| 25 | + "cwd": "${workspaceRoot}", |
| 26 | + "console": "integratedTerminal", |
| 27 | + "internalConsoleOptions": "neverOpen" |
| 28 | + }, |
| 29 | + { |
| 30 | + "type": "node", |
| 31 | + "request": "launch", |
| 32 | + "name": "Debug TypeScript with pnpm", |
| 33 | + "runtimeExecutable": "pnpm", |
| 34 | + "runtimeArgs": ["run", "debug"], |
10 | 35 | "console": "integratedTerminal",
|
11 | 36 | "internalConsoleOptions": "neverOpen",
|
12 |
| - "windows": { |
13 |
| - "program": "${workspaceFolder}/node_modules/jest/bin/jest" |
14 |
| - } |
| 37 | + "skipFiles": ["<node_internals>/**"] |
| 38 | + }, |
| 39 | + { |
| 40 | + "type": "node", |
| 41 | + "request": "attach", |
| 42 | + "name": "Attach to Process", |
| 43 | + "port": 9229, |
| 44 | + "restart": true, |
| 45 | + "skipFiles": ["<node_internals>/**"] |
15 | 46 | }
|
16 | 47 | ]
|
17 | 48 | }
|
0 commit comments