Created
December 13, 2019 08:03
-
-
Save abdulhadad/d4d8b03112370c8d55aa2321fc533d6c to your computer and use it in GitHub Desktop.
VS Code start with env and test with debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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