From c6f5899510163e5311f88603713028a5c80b116f Mon Sep 17 00:00:00 2001 From: Kyle Geib Date: Fri, 17 Dec 2021 15:49:28 -0500 Subject: [PATCH] Adhoc - Configuring debugging and testing within VSCode. --- .vscode/launch.json | 33 +++++++++++++++++++++++++++++++++ .vscode/settings.json | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..04a827f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // 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": [ + { + "name": "Launch Edge :3000", + "request": "launch", + "type": "pwa-msedge", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}" + }, + { + "type": "node", + "name": "vscode-jest-tests", + "request": "launch", + "args": [ + "test", + "--runInBand", + "--no-cache", + "--watchAll=false" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/react-scripts", + "env": { "CI": "true" }, + "protocol": "inspector" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..52c3366 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "jest.jestCommandLine": "node_modules/.bin/react-scripts test --run-in-band --no-cache --watchAll=false" +} \ No newline at end of file