Skip to content

Instantly share code, notes, and snippets.

@khuongln-1346
Created January 20, 2022 02:28
Show Gist options
  • Save khuongln-1346/5a123264fe873eaff4391dc8ccc40680 to your computer and use it in GitHub Desktop.
Save khuongln-1346/5a123264fe873eaff4391dc8ccc40680 to your computer and use it in GitHub Desktop.
launch.json example
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest watch current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": [
"${fileBasename}",
"--config=${workspaceFolder}/package.json",
"--verbose",
"-i",
"--no-cache",
"--watchAll"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Debug: Attach to App container",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/project",
"protocol": "inspector",
"restart": true,
"skipFiles": ["<node_internals>/**"],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment