Skip to content

Cannot hit breakpoint inside a test with VS Code IDE #400

Closed
@stherrienaspnet

Description

@stherrienaspnet

Environment

  1. node -v: [v10.12.0]

  2. npm -v: [6.4.1]

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): [[email protected]]

  4. your vscode-jest settings if customized:

    • jest.pathToJest? [not set]
    • jest.pathToConfig? [not set]
    • anything else that you think might be relevant? []
  5. Operating system: [Ubuntu 18.04]

Prerequisite

  • are you able to run jest test from command line? [yes]
  • how do yo run your tests from command line? (for example: npm run test or node_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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions