Skip to content

Instantly share code, notes, and snippets.

@Dobby89
Created December 4, 2019 10:51
Show Gist options
  • Save Dobby89/1e244744674b9d78d9e93b89ac81158f to your computer and use it in GitHub Desktop.
Save Dobby89/1e244744674b9d78d9e93b89ac81158f to your computer and use it in GitHub Desktop.
Debug VSCode typescript jest tests
{
// 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 Tests",
"cwd": "${workspaceFolder}",
"args": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand",
"--config",
"${workspaceRoot}/jest.config.js"
],
"windows": {
"args": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand"
"--config",
"${workspaceRoot}/jest.config.js"
],
},
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment