Skip to content

Instantly share code, notes, and snippets.

@Adrek
Forked from miohtama/launch.json
Created August 7, 2024 14:06
Show Gist options
  • Save Adrek/11ef1cbbc2ac69a324748d389c6d3f88 to your computer and use it in GitHub Desktop.
Save Adrek/11ef1cbbc2ac69a324748d389c6d3f88 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