Created
October 17, 2019 07:56
-
-
Save haoliangwu/9f170d376923834337b90635aa78a1e1 to your computer and use it in GitHub Desktop.
vscode jest debug config for source reading
This file contains 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"name": "jest active file", | |
"request": "launch", | |
"args": [ | |
"--runInBand", | |
"${fileBasename}" | |
], | |
"cwd": "${workspaceFolder}", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true, | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | |
}, | |
{ | |
"type": "node", | |
"name": "jest selected testcase", | |
"request": "launch", | |
"args": [ | |
"--runInBand", | |
"--testNamePattern", | |
"${selectedText}" | |
], | |
"cwd": "${workspaceFolder}", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"disableOptimisticBPs": true, | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment