fix(e2e): kill stale CDP port before Electrobun launch

This commit is contained in:
Hibryda 2026-03-22 06:50:45 +01:00
parent 6a8181f33a
commit 954d202c04

View file

@ -77,6 +77,9 @@ export const config = {
}
if (!electrobunBinary) {
// Kill any stale process on CDP port before launching
try { execSync(`fuser -k ${CDP_PORT}/tcp 2>/dev/null || true`); } catch {}
// Fall back to `electrobun dev` which builds + launches in one step
console.log('[electrobun-cdp] No binary found, launching via electrobun dev...');
appProcess = spawn('npx', ['electrobun', 'dev'], {