title: Debug Jest tests for Lerna project in VS Code
body: <p>I'm wanting to debug specific Jest tests in VS code for a project that uses Lerna, so there are multiple folders each with their own node_modules folder. With help from <a href="https://stackoverflow.com/a/56654804/1257372">this answer</a> I've got the following launch.json:</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "node",
        "request": "launch",
        "name": "Jest watch",
        "program": "${workspaceRoot}/my/specific/module/node_modules/jest/bin/jest.js",
        "args": ["--verbose", "-i", "--no-cache", "--watchAll"],
        "console": "integratedTerminal",
        "internalConsoleOptions": "neverOpen",
        "cwd": "${workspaceFolder}/my/specific/module"
      }
    ]
  }
  </code></pre>
  
  <p>The problem is that I've had to put the specific path to the module in the launch config so I have to change it every time I want to debug something else.</p>
  
  <p>Is there a better way to do this? Maybe use the folder that's selected in the Explorer? Maybe have some way of launching debug by right-clicking the test file?</p>