DEV Community

Discussion on: Debug Jest Spec In VsCode - Error missing ) after argument list

Collapse
 
ofhouse profile image
Felix Haus

Thanks for the hint!
For reference here is a full .vscode/launch.json file that can simply copy / pasted to make it work:

// .vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    // Default launch configuration for VSCode Jest extension
    {
      "name": "vscode-jest-tests",
      "type": "node",
      "request": "launch",
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
      "cwd": "${workspaceFolder}",
      "args": ["--runInBand", "--watchAll=false"]
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode