Skip to content

Instantly share code, notes, and snippets.

@nickovchinnikov
Last active November 15, 2022 05:47
Show Gist options
  • Save nickovchinnikov/ace62c117e6b6ff87f0fbfe96bb04164 to your computer and use it in GitHub Desktop.
Save nickovchinnikov/ace62c117e6b6ff87f0fbfe96bb04164 to your computer and use it in GitHub Desktop.
vscode jest debug config
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest single run all tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": [
"--verbose",
"-i",
"--no-cache"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest watch all tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": [
"--verbose",
"-i",
"--no-cache",
"--watchAll"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest run current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${file}",
"--verbose",
"-i",
"--no-cache"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest watch current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${file}",
"--verbose",
"-i",
"--no-cache",
"--watchAll"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
@nickovchinnikov
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment