From 47a9613b3ed9524a6bb60ef7e60c6469b897fe8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Mon, 4 Oct 2021 14:26:19 +0200 Subject: [PATCH] Dev: Add debug jest test to vscode launch (#39905) --- .vscode/launch.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index ace2a4d0c12..18e31305b45 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,6 +9,15 @@ "program": "${workspaceFolder}/pkg/cmd/grafana-server/", "env": {}, "args": ["--homepath", "${workspaceFolder}", "--packaging", "dev"] + }, + { + "name": "Debug Jest test", + "type": "node", + "request": "launch", + "runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/.bin/jest", "--runInBand", "${file}"], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "port": 9229 } ] }