Skip to content

Instantly share code, notes, and snippets.

@jimmy-collazos
Created December 14, 2018 08:08
Show Gist options
  • Save jimmy-collazos/50ec120a6ef6a51ba5a3122345519f70 to your computer and use it in GitHub Desktop.
Save jimmy-collazos/50ec120a6ef6a51ba5a3122345519f70 to your computer and use it in GitHub Desktop.
VS Code config - Debug Jest tests
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Launch attach by process ID",
"processId": "${command:PickProcess}"
},
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand", "-c", "test/unit/jest.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
},
{
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["-c", "test/unit/jest.config.js","${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment