Skip to content

Instantly share code, notes, and snippets.

@abdulhadad
Created December 13, 2019 08:03
Show Gist options
  • Save abdulhadad/d4d8b03112370c8d55aa2321fc533d6c to your computer and use it in GitHub Desktop.
Save abdulhadad/d4d8b03112370c8d55aa2321fc533d6c to your computer and use it in GitHub Desktop.
VS Code start with env and test with debug
{
// 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": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/app/infra/webserver/server",
"outputCapture": "std",
"console": "integratedTerminal",
"env": {
"DBUSER": "user1",
"DBPASS": "password"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug Current Jest Test",
"cwd": "${workspaceFolder}",
"args": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"${fileBasename}",
"--runInBand",
"--detectOpenHandles"
],
"windows": {
"args": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"${fileBasename}",
"--runInBand",
"--detectOpenHandles"
],
},
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment