Has anyone managed to ge…

less than 1 minute read

Has anyone managed to get debugging of Jest tests working via Visual Studio Code?

Responses:

Try this: https://www.youtube.com/watch?v=9_lgM2nokLg

config to debug current file {       ”type”: ”node”,       ”request”: ”launch”,       ”name”: ”Jest Current File”,       ”program”: ”${workspaceFolder}\node_modules\@angular\cli\bin\ng”,       ”cwd”: ”${workspaceFolder}”,       ”args”: [         ”test”,         ”–testPathPattern=${fileBasenameNoExtension}”,         ”–runInBand”       ],       ”console”: ”internalConsole”,       ”internalConsoleOptions”: ”neverOpen”,       ”disableOptimisticBPs”: true     }

Updated: