Skip to content

Instantly share code, notes, and snippets.

@stephenwil
Created February 5, 2020 14:42
Show Gist options
  • Save stephenwil/c0417b3d97226615758a6ce0d3b2999b to your computer and use it in GitHub Desktop.
Save stephenwil/c0417b3d97226615758a6ce0d3b2999b to your computer and use it in GitHub Desktop.
Visual Code launch.json, to debug jest tests
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"url": "http://localhost:8082",
"urlFilter": "http://localhost:8082/*",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Jest Tests",
"runtimeVersion": "12.14.1",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"${file}",
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment