From cea1b4834056f6b2488f1c70591ba8465e60fa04 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Mon, 7 Dec 2020 01:12:01 -0800 Subject: [PATCH] add debug configuration for utils package (#3100) --- .vscode/launch.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index f0ecf9fbc23e..c6ac65c3bb05 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -76,5 +76,29 @@ "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it }, + + // @sentry/utils - run a specific test file in watch mode + // must have file in currently active tab when hitting the play button + { + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}/packages/utils", + "name": "Debug @sentry/utils tests - just open file", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": [ + "--watch", + "--runInBand", + "--config", + "${workspaceFolder}/packages/utils/package.json", + "--coverage", + "false", // coverage messes up the source maps + "${relativeFile}" // remove this to run all package tests + ], + "disableOptimisticBPs": true, + "sourceMaps": true, + "smartStep": true, + "console": "integratedTerminal", // otherwise it goes to the VSCode debug terminal, which can't read from stdin + "internalConsoleOptions": "neverOpen", // since we're not using it, don't automatically switch to it + }, ] }