firsttris/vscode-jest-runner

Debug with CRA - How to setup

PhilippeRoy opened this issue · 2 comments

The recommendation on how to get debug to work in a Create React App can be simplified by only requiring you to update the jestrunner.debugOptions to the following:

  "jestrunner.debugOptions": {
    "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
    "runtimeArgs": [
      "test",
      "${fileBasename}",
      "--runInBand",
      "--no-cache",
      "--watchAll=false",
      "--color"
    ]
  },

thanks i will put your finding into the readme