Last active
November 15, 2020 08:38
-
-
Save janbaer/2edf48f25f7b7002e3b3ff1fe4de7dcd to your computer and use it in GitHub Desktop.
Debug Jest Tests with VSCode
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.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Current File", | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js", | |
"cwd": "${workspaceFolder}", | |
"args": [ | |
"--config=${workspaceFolder}/jest.config.json", | |
"--runInBand", | |
"--no-cache", | |
"--testPathPattern=${fileBasenameNoExtension}" | |
], | |
"console": "internalConsole", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment