If you're writing unit tests, there will be times when the ability to debug specific tests will come in handy. This is how you set up a debugging profile for VSCode.
At the root of your repo create a .vscode
folder, and dump these files in it:
launch.json
debugJest.js
jestDebugger.js