Open JReinhold opened 7 years ago
Using VSCode to debug tests. Setting breakpoints in the test-files doesn't work, and just gets ignored. Interestingly, inserting debugger; into the tests works fine.
debugger;
This is my launch.json:
launch.json
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Debug Jest", "program": "${workspaceRoot}/node_modules/jest/bin/jest.js", "args": ["--runInBand", "--no-cache"], "cwd": "${workspaceRoot}", "console": "integratedTerminal", "sourceMaps": true, "smartStep": true } ] }
Using VSCode to debug tests. Setting breakpoints in the test-files doesn't work, and just gets ignored. Interestingly, inserting
debugger;
into the tests works fine.This is my
launch.json
: