.vscode/launch.json
{
// 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": "node",
"request": "launch",
"name": "Debug Unit Tests for current workspace file",
"env": {
"BABEL_ENV": "debug"
},
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"runtimeArgs": ["--nolazy"],
"args": ["${fileBasenameNoExtension}", "--runInBand", "--no-cache"],
"sourceMaps": true,
"outputCapture": "std",
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**/*.js"]
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:1234",
"webRoot": "${workspaceFolder}",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"/__parcel_source_root/*": "${webRoot}/*"
}
}
]
}