Skip to content

Instantly share code, notes, and snippets.

@mauriciodarocha
Created June 13, 2021 23:54
Show Gist options
  • Save mauriciodarocha/1aee181d7027f563dbc5de539a01d208 to your computer and use it in GitHub Desktop.
Save mauriciodarocha/1aee181d7027f563dbc5de539a01d208 to your computer and use it in GitHub Desktop.
Debug jsx test files in VSCode with Jest
{
"version": "0.2.0",
"configurations": [
{
"name": "1 - Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"runtimeArgs": [
"--inspect-brk",
"test"
],
"args": [
"--runInBand",
"--no-cache",
"--env=jsdom"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
@mauriciodarocha
Copy link
Author

mauriciodarocha commented Jun 13, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment