Skip to content

Commit

Permalink
Configurações para realizar Debug dos Testes Unitários com Frontend u…
Browse files Browse the repository at this point in the history
…sando VS Code
  • Loading branch information
alexfariakof committed Jan 31, 2024
1 parent f496b15 commit a1b9c99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
13 changes: 7 additions & 6 deletions HomeBrokerSPA/HomeBrokerChart/HomeBrokerChart.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
"diagnosticLogging": true
},
{
"name": "Run Debug Unit Tests",
"type": "chrome",
"request": "launch",
"runtimeArgs": ["run", "test:debug"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"url": "http://localhost:9876/debug.html"
"name": "Karma Attach Debugger",
"url": "http://localhost:9876/debug.html",
"webRoot": "${workspaceFolder}",
"pathMapping": {
"/_karma_webpack_/": "${workspaceRoot}/"
}
},
]
}
Expand Down
2 changes: 1 addition & 1 deletion HomeBrokerSPA/HomeBrokerChart/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
const selectedBrowser = process.env.BROWSER || 'ChromeHeadless';
const selectedBrowser = process.env.BROWSER || 'Chrome';

config.set({
basePath: '',
Expand Down
3 changes: 1 addition & 2 deletions HomeBrokerSPA/HomeBrokerChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"build:ssr": "ng build && ng run HomeBrokerSPA:server",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:coverage": "ng test --code-coverage --browsers=ChromeHeadless --no-watch",
"test:debug": "set BROWSER=Chrome && ng test --browsers=Chrome"
"test:coverage": "ng test --code-coverage --browsers=ChromeHeadless --no-watch"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit a1b9c99

Please sign in to comment.