Add "Debug Current Test File" configuration for VSCode

Just press F5 (or ⌘+⇧+P -> `Debug Current Test File`)
"
This commit is contained in:
Patrick Ellis 2022-09-22 12:06:30 -04:00
parent c93c7c75c9
commit 0dce8f4104
No known key found for this signature in database
GPG Key ID: 097FB05383225386
2 changed files with 21 additions and 1 deletions

5
.gitignore vendored
View File

@ -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/

17
.vscode/launch.json vendored Normal file
View File

@ -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"
}
]
}