Skip to content

Instantly share code, notes, and snippets.

@haoliangwu
Created October 17, 2019 07:56
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 haoliangwu/9f170d376923834337b90635aa78a1e1 to your computer and use it in GitHub Desktop.
Save haoliangwu/9f170d376923834337b90635aa78a1e1 to your computer and use it in GitHub Desktop.
vscode jest debug config for source reading
{
// 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