]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update VSCode debugging for vitest (#9573)
authorTycho <jh.leong@outlook.com>
Mon, 1 Apr 2024 13:23:09 +0000 (21:23 +0800)
committerGitHub <noreply@github.com>
Mon, 1 Apr 2024 13:23:09 +0000 (21:23 +0800)
.vscode/launch.json

index b616400b48edb1d6ee30f2c80530ce7ac2180fe4..9fc03aa9bc49079dfe85885bcb0b5b9351c86020 100644 (file)
@@ -5,24 +5,15 @@
   "version": "0.2.0",
   "configurations": [
     {
-      "name": "Jest",
       "type": "node",
       "request": "launch",
-      "program": "${workspaceFolder}/node_modules/.bin/jest",
-      "stopOnEntry": false,
-      "args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"],
-      "cwd": "${workspaceFolder}",
-      "preLaunchTask": null,
-      "runtimeExecutable": null,
-      "runtimeArgs": ["--nolazy"],
-      "env": {
-        "NODE_ENV": "development"
-      },
-      "console": "integratedTerminal",
-      "sourceMaps": true,
-      "windows": {
-        "program": "${workspaceFolder}/node_modules/jest/bin/jest"
-      }
+      "name": "Vitest - Debug Current Test File",
+      "autoAttachChildProcesses": true,
+      "skipFiles": ["<node_internals>/**", "**/node_modules/**"],
+      "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
+      "args": ["run", "${relativeFile}"],
+      "smartStep": true,
+      "console": "integratedTerminal"
     }
   ]
 }