Skip to content

Jest debugging from VScode not working correctly #3310

Closed
@TheTFo

Description

@TheTFo

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

  1. node -v: 8.5
  2. npm -v: 5.4
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected): 1.0.14

Then, specify:

  1. Operating system: windows 8
  2. Browser and version (if relevant):

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions