Skip to content

[BUG] Cannot run test in debug mode on Visual Studio Code February 2025 (version 1.98) #1221

@szendihorvathjozsef

Description

@szendihorvathjozsef

Hi,

Describe the bug
I have updated my Visual Studio Code to version 1.98 and I have experienced that I cannot run a test case in debub mode. I have tried with doing a clean installation of Visual Studio Code version 1.98 and I have faced with same issue. Uninstalling version 1.98 and installing version 1.97 back solved my issue. So perhaps vscode-jest is not yet compatible in some way with 1.98.

To Reproduce
Steps to reproduce the behavior:

  1. Go to one of your test file
  2. Right click on test options
  3. Choose Debug Test
  4. See error

Expected behavior
I would expect that Debug Test is functional as on earlier Visual Studio Code versions.

Screenshots

Image

Environment (please complete the following information):

  • vscode-jest version: 6.4.0
  • node -v: v22.11.0
  • npm -v: 10.9.0
  • jest version: 29.7.0
  • your vscode-jest setting: nothing specific
  • Operating system: Windows 11

Prerequisite
Nx is being used as central tool to launch tests for specific projects.

  • are you able to run jest from the command line? Yes, I'm able to do.
  • where do you run jest CLI from? From the root of the project
  • how do you run your tests from the command line? npx nx run xxxx:test, it launched the Jest CLI with specific arguments defined in the Nx project.json and nx.json

Additional context
I have not seen this issue before and unfortunately It does not give me any meaningful information regarding the exact problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions