Last active
November 21, 2023 08:38
-
-
Save vyspiansky/25e50e7d007a447be8709a62c6560231 to your computer and use it in GitHub Desktop.
Debug Jest Launch Configuration in VS Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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