Skip to content

Instantly share code, notes, and snippets.

@zbarbuto
Last active October 4, 2021 21:52
Show Gist options
  • Save zbarbuto/a04d7ca3ccf48c021334679712593b07 to your computer and use it in GitHub Desktop.
Save zbarbuto/a04d7ca3ccf48c021334679712593b07 to your computer and use it in GitHub Desktop.
Angular Karma launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "attach",
"name": "Attach to Karma",
"address": "localhost",
"restart": true,
"port": 9222,
"timeout": 600000,
"sourceMaps": true,
"webRoot": "${workspaceFolder}",
"pathMapping": {
"/_karma_webpack_": "${workspaceFolder}"
}
},
{
"type": "node",
"request": "launch",
"name": "Run test file",
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal",
"program": "${workspaceFolder}/node_modules/.bin/ng",
"args": ["test", "--include", "${relativeFile}"],
"outFiles": ["${workspaceFolder}/**/*.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment