Skip to content

Instantly share code, notes, and snippets.

@xendke
Last active July 24, 2018 21:12
Show Gist options
  • Save xendke/4fd1e6e1db7d6a80792645c42ae6440b to your computer and use it in GitHub Desktop.
Save xendke/4fd1e6e1db7d6a80792645c42ae6440b to your computer and use it in GitHub Desktop.
Debug CRA Jest using Visual Studio Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"runtimeArgs": [
"--inspect",
"test"
],
"env": {
"NODE_ENV": "test"
},
"args": [
"--runInBand",
"--no-cache",
"--env=jsdom"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment