Skip to content

Commit 0bdea3f

Browse files
committed
vitest launch config
1 parent c9a7945 commit 0bdea3f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.submodules/config/configs.jsonc

+23
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,29 @@
5454
"typescript.preferences.quoteStyle": "double",
5555
"!prettier.configPath": ".prettierrc.json",
5656
"editor.defaultFormatter": "esbenp.prettier-vscode"
57+
},
58+
"launch": {
59+
"version": "0.2.0",
60+
"configurations": [
61+
// https://vitest.dev/guide/debugging#vs-code
62+
{
63+
"name": "Vitest: Current File",
64+
"type": "node",
65+
"request": "launch",
66+
"autoAttachChildProcesses": true,
67+
"skipFiles": [
68+
"<node_internals>/**",
69+
"**/node_modules/**"
70+
],
71+
"program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
72+
"args": [
73+
"run",
74+
"${relativeFile}"
75+
],
76+
"smartStep": true,
77+
"console": "integratedTerminal"
78+
}
79+
]
5780
}
5881
}
5982
},

0 commit comments

Comments
 (0)