Chrome DevTools for coding agents
test: do not suppress uncaught errors in tests (#1008)
Alex Rudenko5696cce035a3
diff --git a/scripts/test.mjs b/scripts/test.mjsindex 396996b1..43ee3871 100644--- a/scripts/test.mjs+++ b/scripts/test.mjs@@ -68,6 +68,7 @@ async function runTests(attempt) {env: {...process.env,CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: true,+ CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT: true,},});diff --git a/src/main.ts b/src/main.tsindex 9a7f9e75..7ae73fe0 100644--- a/src/main.ts+++ b/src/main.ts@@ -58,9 +58,11 @@ if (args.usageStatistics) {});}-process.on('unhandledRejection', (reason, promise) => {- logger('Unhandled promise rejection', promise, reason);-});+if (process.env['CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT'] !== 'true') {+ process.on('unhandledRejection', (reason, promise) => {+ logger('Unhandled promise rejection', promise, reason);+ });+}logger(`Starting Chrome DevTools MCP Server v${VERSION}`);const server = new McpServer(