-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to debug Jest tests using VSCode #73
Comments
Hi @marcantoineveilleux. I'm sorry but I don't think this issue belongs to this repository. If you can set breakpoints with ts-jest, you should be able to do it here. So I suggest better ask in stackoverflow about it ot open an issue in ts-jest. Nonetheless, I'll keep this issue open some days in case someone knows the answer |
I had opened similar issues on VSCode and Jest repos. Root Issue: See related issues: |
@mattmazzola This launch.json file works for me. I'm able to set breakpoints and hit them. {
"version": "0.2.0",
"configurations": [
{
"name": "Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"sourceMaps": true,
"runtimeArgs": [
"-i"
],
"env": {
"NODE_ENV": "development"
},
"outFiles": [
"${workspaceRoot}/dist/**/*"
],
"cwd": "${workspaceRoot}"
}
]
} The weird thing is that I have to press F5 twice, because the first time the debugger exits without hitting the breakpoint. But it hits the breakpoint the second time through. 😄 |
With the default project, I am unable to set breakpoint in visual studio code.
Here's my launch.json:
The text was updated successfully, but these errors were encountered: