Skip to content

Instantly share code, notes, and snippets.

@Vikaskumargd
Created September 20, 2017 06:59
Show Gist options
  • Save Vikaskumargd/1f1586e1bf506537b5a98e43c361ec13 to your computer and use it in GitHub Desktop.
Save Vikaskumargd/1f1586e1bf506537b5a98e43c361ec13 to your computer and use it in GitHub Desktop.
Config for Debugging Typescipt Jest tests in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts-ts",
"runtimeArgs": [
"--inspect-brk",
"test"
],
"args": [
"--runInBand",
"--no-cache",
"--env=jsdom"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment