Skip to content

Instantly share code, notes, and snippets.

@amoilanen
Created November 29, 2023 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amoilanen/f0519d017fa81c67ee89ebf825ef560c to your computer and use it in GitHub Desktop.
Save amoilanen/f0519d017fa81c67ee89ebf825ef560c to your computer and use it in GitHub Desktop.
VSCode debug configuration for running the current test file with Jest
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug test",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand",
"${relativeFile}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment