From 0dce8f41049e053779dfa77d8936f647c5178042 Mon Sep 17 00:00:00 2001 From: Patrick Ellis Date: Thu, 22 Sep 2022 12:06:30 -0400 Subject: [PATCH] Add "Debug Current Test File" configuration for VSCode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just press F5 (or ⌘+⇧+P -> `Debug Current Test File`) " --- .gitignore | 5 ++++- .vscode/launch.json | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 9641d2574..812c68405 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..92df7056e --- /dev/null +++ b/.vscode/launch.json @@ -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_modules/**"], + "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs", + "args": ["run", "${relativeFile}"], + "smartStep": true, + "console": "integratedTerminal" + } + ] +}