- extensions.spec.ts: the two 'does not take precedence over Electron
webRequest' tests use an async IIFE inside new Promise(). onBeforeRequest/
onBeforeSendHeaders fires on the navigation itself, so the outer promise
resolves (and the load is cancelled/aborted by teardown) before the IIFE's
awaited loadURL settles; the IIFE then rejects unhandled. .catch() the IIFE.
- api-service-worker-main.spec.ts: loadWorkerScript() wraps wc.loadURL and all
24 call sites are fire-and-forget; wrap the helper's return in
dangerouslyIgnoreWebContentsLoadResult. Also .catch() the once(ipcMain,'ping',
{signal}).then() chain so abortController.abort() in finally doesn't surface
an AbortError.
- serial/chromium-focus-and-clipboard.spec.ts: executeJavaScript returned the
WindowProxy from window.open(), which can't be structured-cloned over IPC;
append '; null' so the result is serializable.