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
Cannot hit breakpoint inside a test with VS Code IDE #400
Comments
@stherrienaspnet Have you tried the |
Possible solution: For me, the reason why I couldn't hit the correct line was due to sourcemaps being incorrect/absent due to an issue with Setting that to false allowed the green CodeLens [debug] button to properly hit my code at the desired lines. |
When launching jest as a debug task, adding the option Full context at microsoft/vscode#60187 Not sure if or how this can be used to fix this issue Below is a config that works
|
hi, while there might be many reasons the debugger can't find the right breakpoint, you can try 3.0.0-preRelease to see if it resolve your issue... |
For me, with the same version you have, it's |
Thanks you very much!
Le jeu. 12 sept. 2019 à 14:12, Jordan Ashley Craw <notifications@github.com>
a écrit :
… For me, with the same version you have, it's --collectCoverage in any
form - as soon as this is applied, breakpoints on any code except your unit
tests are a goner.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#400?email_source=notifications&email_token=ABOX24IISVX7D5EVW2HG3YTQJKBCNA5CNFSM4GAA55A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SYUQY#issuecomment-530942531>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABOX24NE2N5A2ZHQKTVDPGLQJKBCNANCNFSM4GAA55AQ>
.
|
Same problem, collectCoverage as well. |
Environment
node -v
: [v10.12.0]npm -v
: [6.4.1]npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [jest@23.6.0]your vscode-jest settings if customized:
Operating system: [Ubuntu 18.04]
Prerequisite
npm run test
ornode_modules/.bin/jest
) [npm run test]Steps to Reproduce
Here is a really simple repository that show it is not possible to hit breakpoint into the file user.repository.spec.ts on line 12 const users = await userRepository.getAll();
https://github.com/stherrienaspnet/vscode-jest-debug.git
Relevant Debug Info
[Did not found any resolution yet]
Expected Behavior
[Should break on line 12 when there is a breakpoint and press play vscode-jest-test in launch menu ]
Actual Behavior
[Break on line 12 is not hit]
Thanks you very much!
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...
The text was updated successfully, but these errors were encountered: