Skip to content

Instantly share code, notes, and snippets.

@miohtama
Created February 13, 2020 22:29
Show Gist options
  • Save miohtama/9c5f64655eb2fe3d3957bf1f83f3d8ed to your computer and use it in GitHub Desktop.
Save miohtama/9c5f64655eb2fe3d3957bf1f83f3d8ed to your computer and use it in GitHub Desktop.
Launching Jest e2e+NestJS from Visual Studio Code - so you can hit breakpoints
// https://github.com/microsoft/vscode-recipes/tree/master/debugging-jest-tests
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand",
"--config",
"./test/jest-e2e.json"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
},
"env": {
"PATH": "/Users/moo/.nvm/versions/node/v11.0.0/bin:${env:PATH}"
},
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment