We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Yes
Not surr
(Write your answer here.)
Jest Debugging
node -v
npm -v
yarn --version
npm ls react-scripts
Then, specify:
Here's repro branch
https://github.com/TheTFo/cria/tree/jest-debug?files=1
Attempt to debug tests from vscode launcher, placing a break point on the line indicated in comment in this file:
https://github.com/TheTFo/cria/blob/jest-debug/src/actions/todoActions.js
Breakpoints don't appear to hit the appropriate lines. Not sure what's causing it. I don't see transpiled code, just wierd breakpoints hits.
Breakpoints would hit as expected
Breakpoints were all over, not seeing transpiled code though
See branch and file above.
The text was updated successfully, but these errors were encountered:
Node 8 switches to the inspector protocol and some of the older scripts don't work as anticipated, I have had good luck with this launch.json
launch.json
{ "name": "Test with debugger", "type": "node", "request": "launch", "runtimeArgs": ["--nolazy"], "program": "${workspaceRoot}/node_modules/jest/bin/jest.js", "args": [ "--runInBand", "--transform={\"^.+\\\\.(js|jsx)$\": \"babel-jest\",\"^.+\\\\.css$\": \"jest-css\",\"^(?!.*\\\\.(js|jsx|css|json)$)\": \"jest-file\"}" ], "stopOnEntry": false, "sourceMaps": true, "console": "internalConsole", "cwd": "${workspaceRoot}" }
Sorry, something went wrong.
Wanna send a PR to fix it?
Hello @gaearon ! Absolutely, I will just check a few things to see if anything needs to be polished.
This was probably fixed in #3605.
No branches or pull requests
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Not surr
(Write your answer here.)
Which terms did you search for in User Guide?
Jest Debugging
Environment
node -v
: 8.5npm -v
: 5.4yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected): 1.0.14Then, specify:
Steps to Reproduce
Here's repro branch
https://github.com/TheTFo/cria/tree/jest-debug?files=1
Attempt to debug tests from vscode launcher, placing a break point on the line indicated in comment in this file:
https://github.com/TheTFo/cria/blob/jest-debug/src/actions/todoActions.js
Breakpoints don't appear to hit the appropriate lines. Not sure what's causing it. I don't see transpiled code, just wierd breakpoints hits.
Expected Behavior
Breakpoints would hit as expected
Actual Behavior
Breakpoints were all over, not seeing transpiled code though
Reproducible Demo
See branch and file above.
The text was updated successfully, but these errors were encountered: