Skip to content

Commit 31e453a

Browse files
authored
[js/web] dump debug logs for karma for diagnose purpose (microsoft#19785)
### Description dump debug logs for karma for diagnose purpose. This is for debugging the CI issue of Chrome launch failure and considered temporary.
1 parent 7fbd4f2 commit 31e453a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/script/test-runner-cli.ts

+3
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ async function main() {
569569
if (webnn) {
570570
chromiumFlags.push('--enable-experimental-web-platform-features');
571571
}
572+
if (process.argv.includes('--karma-debug')) {
573+
karmaArgs.push('--log-level debug');
574+
}
572575
karmaArgs.push(`--bundle-mode=${args.bundleMode}`);
573576
karmaArgs.push(...chromiumFlags.map(flag => `--chromium-flags=${flag}`));
574577
if (browser.startsWith('Edge')) {

0 commit comments

Comments
 (0)