From f38fdc33161594ff977aae979d27b3ddc6321c60 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 1 Sep 2020 11:59:17 -0400 Subject: [PATCH] feat: add launch configuration for debugging tests --- .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 34025e7c08..701ccc0b02 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -16,6 +16,42 @@ "program": "${workspaceFolder}/tools/autodeployment/server.js", "envFile": "${workspaceRoot}/tools/autodeployment/.env", "skipFiles": ["/**"] + }, + { + "type": "node", + "request": "launch", + "name": "Launch All Tests", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "console": "integratedTerminal", + "env": { + "LOG_LEVEL": "error", + "MOCK_REDIS": "1", + "FEED_URL_INTERVAL_MS": "200" + }, + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "args": ["--verbose", "-i", "--no-cache"], + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest" + } + }, + { + "type": "node", + "request": "launch", + "name": "Launch Opened Test File", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "console": "integratedTerminal", + "env": { + "LOG_LEVEL": "error", + "MOCK_REDIS": "1", + "FEED_URL_INTERVAL_MS": "200" + }, + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "args": ["${fileBasename}", "--runInBand", "--no-cache"], + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest" + } } ] }