fix(e2e): kill stale CDP port before Electrobun launch
This commit is contained in:
parent
6a8181f33a
commit
954d202c04
1 changed files with 3 additions and 0 deletions
|
|
@ -77,6 +77,9 @@ export const config = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!electrobunBinary) {
|
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
|
// Fall back to `electrobun dev` which builds + launches in one step
|
||||||
console.log('[electrobun-cdp] No binary found, launching via electrobun dev...');
|
console.log('[electrobun-cdp] No binary found, launching via electrobun dev...');
|
||||||
appProcess = spawn('npx', ['electrobun', 'dev'], {
|
appProcess = spawn('npx', ['electrobun', 'dev'], {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue