Skip to content

Instantly share code, notes, and snippets.

@juristr
Created May 12, 2020 20:35
Show Gist options
  • Save juristr/66955e0c362d0a9e7c8d84825f7b71ef to your computer and use it in GitHub Desktop.
Save juristr/66955e0c362d0a9e7c8d84825f7b71ef to your computer and use it in GitHub Desktop.
VSCode launch utils
{
// 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": "Jest All",
"program": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
"cwd": "${workspaceFolder}",
"args": ["test", "--runInBand"],
"console": "internalConsole",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
"cwd": "${workspaceFolder}",
"args": [
"test",
"--testPathPattern=${fileBasenameNoExtension}",
"--runInBand"
],
"console": "internalConsole",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File (nx)",
"program": "${workspaceFolder}/node_modules/@nrwl/cli/bin/nx.js",
"cwd": "${workspaceFolder}",
"args": [
"test",
"--testPathPattern=${fileBasenameNoExtension}",
"--runInBand"
],
"console": "internalConsole",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"request": "launch",
"name": "Debug Current Schematic",
"program": "${workspaceFolder}/node_modules/@nrwl/cli/bin/nx.js",
"cwd": "${workspaceFolder}",
"args": ["workspace-schematic", "${input:schematicName}"],
"console": "integratedTerminal",
"disableOptimisticBPs": true
}
],
"inputs": [
{
"id": "schematicName",
"type": "promptString",
"description": "Name of the schematic to launch"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment