DEV Community

Marc Ziel
Marc Ziel

Posted on

vscode debug config for wsl and jest

When using the config from jest documentation the execution doesn't stop at specified breakpoints but the following config works with wsl:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Jest All",
      "program": "${workspaceFolder}/node_modules/jest/bin/jest",
      "args": ["--runInBand"],
      "useWSL": true
    },
  ]
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)