From d167031e39565161cf21d812af6428ce664e2dab Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Mon, 13 Jul 2020 23:05:39 -0400 Subject: [PATCH] Add VSCode debug configurations --- .vscode/launch.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..d0fc56bd --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run tests", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test:jest"], + "console": "integratedTerminal" + }, + { + "type": "node", + "request": "launch", + "name": "Run current test file", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test:jest"], + "args": ["--", "-i", "${relativeFile}"], + "console": "integratedTerminal" + }, + { + "type": "node", + "request": "launch", + "name": "Run selected test name", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test:jest"], + "args": ["--", "-i", "${relativeFile}", "-t", "${selectedText}"], + "console": "integratedTerminal" + } + ] +}