Dev: Add debug jest test to vscode launch (#39905)

This commit is contained in:
Zoltán Bedi 2021-10-04 14:26:19 +02:00 committed by GitHub
parent e2e70d036e
commit 47a9613b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
.vscode/launch.json vendored
View File

@ -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
}
]
}