From 8d2aa9fe530cf211d22804ae4b3fe1b96939ef8b Mon Sep 17 00:00:00 2001 From: Andres-CT98 <107568016+Andres-CT98@users.noreply.github.com> Date: Thu, 9 May 2024 12:06:02 -0600 Subject: [PATCH] debug firefox options (#2620) --- .vscode/launch.json | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 39 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 297b6d99801..a73736d16d3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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", @@ -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", @@ -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", @@ -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", diff --git a/package.json b/package.json index 4d0fa5e77e2..55b27622daa 100644 --- a/package.json +++ b/package.json @@ -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" },