VSCode Breakpoints are disabled when launching a test run

27 Views Asked by At

I have the following setup in my launch.json configuration:

{
  "type": "node-terminal",
  "name": "Test Current File",
  "request": "launch",
  "command": "npm run test:unit ${fileBasenameNoExtension}",
  "cwd": "${workspaceFolder}"
}

I am able to run the current file, but any breakpoints defined are disabled

Setting up the Breakpoint

Before Running

Selecting the Launch configuration

Running Current File

While Test is Running

Breakpoints disabled

End of Test (ran but no breakpoints)

Test Running

0

There are 0 best solutions below