Created
January 23, 2020 13:13
-
-
Save jineeshjohn/b05c16daaa429ec66b667d90201ce920 to your computer and use it in GitHub Desktop.
Debugging create react app jest test
This file contains hidden or 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
// https://elijahmanor.com/cra-debug-vscode/ | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug CRA Tests", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", | |
"args": [ | |
"test", | |
"--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