IndustrialI

VSCode Test Debugging

    {
      "name": "Test",
      "request": "launch",
      "type": "node",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": [
        "test",
        "--unstable",
        "--inspect-brk",
        "--allow-all"
      ],
      "attachSimplePort": 9229
    }


This doesn't work unless I add:

      "program": "${workspaceFolder}/src/foo/bar.test.ts",


When I run without, I see that a process starts but it does nothing. How do I run all tests with a debugger? I just want to set a breakpoint and press run. I don't want to have to edit the config to test 1 specific file.
Was this page helpful?