Created
February 5, 2020 14:42
-
-
Save stephenwil/c0417b3d97226615758a6ce0d3b2999b to your computer and use it in GitHub Desktop.
Visual Code launch.json, to debug jest tests
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": "chrome", | |
"request": "attach", | |
"name": "Attach to Chrome", | |
"port": 9222, | |
"url": "http://localhost:8082", | |
"urlFilter": "http://localhost:8082/*", | |
"webRoot": "${workspaceFolder}" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Tests", | |
"runtimeVersion": "12.14.1", | |
"runtimeArgs": [ | |
"--inspect-brk", | |
"${workspaceRoot}/node_modules/.bin/jest", | |
"${file}", | |
"--runInBand" | |
], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"port": 9229 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment