Skip to content

Commit

Permalink
debug firefox options (microsoft#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres-CT98 authored May 9, 2024
1 parent ea719e1 commit 8d2aa9f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
"args": ["start", "--chrome"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Test all files (Firefox)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--firefox"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
Expand All @@ -33,6 +41,14 @@
"args": ["start", "--chrome", "--components", "${fileBasenameNoExtension}"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Test current file (Firefox)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--firefox", "--components", "${fileBasenameNoExtension}"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
Expand All @@ -49,6 +65,14 @@
"args": ["start", "--chrome", "--no-single-run"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug All Unit Tests (Firefox)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--firefox", "--no-single-run"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
Expand All @@ -71,6 +95,20 @@
],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug current unit test file (Firefox)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": [
"start",
"--firefox",
"--components",
"${fileBasenameNoExtension}",
"--no-single-run"
],
"console": "integratedTerminal"
},
{
"type": "chrome",
"request": "launch",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"test:chrome": "node tools/build.js normalize & karma start --chrome",
"test:firefox": "node tools/build.js normalize & karma start --firefox",
"test:debug": "node tools/build.js normalize & karma start --no-single-run --chrome",
"test:debug-firefox": "node tools/build.js normalize & karma start --no-single-run --firefox",
"test:coverage": "node tools/build.js normalize & karma start --coverage --firefox --chrome",
"publish": "node tools/build.js clean normalize buildcommonjs buildamd buildmjs dts pack packprod builddemo builddoc publish"
},
Expand Down

0 comments on commit 8d2aa9f

Please sign in to comment.