Reputation: 775
I am using Visual Studio Code for writing jasmine and karma based unit test cases. I would like to know if there is a way to debug tests in vs code tool itself.
Upvotes: 7
Views: 15314
Reputation: 2191
9876
(or whatever is specified in your karma.conf.js
). See below.ng test
) and refresh the opened Chrome window if necessarySample configuration, they are created in a filed called 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": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:9876",
"webRoot": "${workspaceFolder}"
}
]
}
Upvotes: 7