firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
264 stars 124 forks source link

Debug with CRA - How to setup #315

Closed PhilippeRoy closed 1 year ago

PhilippeRoy commented 1 year ago

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"
    ]
  },
firsttris commented 1 year ago

thanks i will put your finding into the readme

SnowNooDLe commented 4 months ago

This saved my life so much! Many thanks!