Skip to content

Instantly share code, notes, and snippets.

@jbsulli
Created January 29, 2017 02:48
Show Gist options
  • Save jbsulli/72bf3706a887cd8b932f93d4f625930d to your computer and use it in GitHub Desktop.
Save jbsulli/72bf3706a887cd8b932f93d4f625930d to your computer and use it in GitHub Desktop.
Debug Jest in VSCode
{
// Use IntelliSense to learn about possible Node.js debug 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": "node",
"request": "launch",
"name": "Debug Jest",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": ["--runInBand"],
"cwd": "${workspaceRoot}",
"runtimeArgs": [
"--nolazy"
],
"env":{
"NODE_ENV": "development"
}
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment