Created
February 13, 2020 22:29
-
-
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
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
// 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