Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Last active November 21, 2023 08:38
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 vyspiansky/25e50e7d007a447be8709a62c6560231 to your computer and use it in GitHub Desktop.
Save vyspiansky/25e50e7d007a447be8709a62c6560231 to your computer and use it in GitHub Desktop.
Debug Jest Launch Configuration in VS Code
{
"version": "0.1.0",
"configurations": [
{
"name": "Test Specific File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/jest",
"args": [
"--collectCoverage=false",
"--colors",
"--runInBand",
"--runTestsByPath",
"${relativeFile}",
"--testPathPattern=${fileDirname}",
"--testTimeout=100000"
],
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"${workspaceRoot}/../../node_modules/**/*",
"<node_internals>/**/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment