Skip to content

Commit

Permalink
Add "Debug Current Test File" configuration for VSCode
Browse files Browse the repository at this point in the history
Just press F5 (or ⌘+⇧+P -> `Debug Current Test File`)
"
  • Loading branch information
pje committed Sep 22, 2022
1 parent c93c7c7 commit 0dce8f4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ token

package-lock.json

.vscode/
# ignore files in /.vscode/ except for /.vscode/launch.json
/.vscode/**
!/.vscode/launch.json

cypress/platform/current.html
cypress/platform/experimental.html
local/
Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "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"
}
]
}

0 comments on commit 0dce8f4

Please sign in to comment.