Skip to content

Commit

Permalink
added debug launch configurations for vitest
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <[email protected]>
  • Loading branch information
jonah-iden committed Nov 1, 2023
1 parent 41faf16 commit cddff26
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,25 @@
"version": "0.2.0",
"configurations": [
{
"name": "Mocha: Test Current File",
"name": "Vitest: Run All",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/.bin/ts-mocha",
"args": [
"${file}",
"--no-timeouts"
],
"env": {
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json"
},
"sourceMaps": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "--no-color", "--no-coverage", "--no-watch"],
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std"
"console": "integratedTerminal",
},
{
"name": "Mocha: Test All",
"name": "Vitest: Run Selected File",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/.bin/ts-mocha",
"args": [
"-p",
"tsconfig.json",
"**/src/**/*.spec.ts",
],
"env": {
"NODE_ENV": "test"
},
"sourceMaps": true,
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std"
"console": "integratedTerminal",
},
{
"name": "Examples Server",
Expand Down

0 comments on commit cddff26

Please sign in to comment.