Skip to content

Commit 9ba166c

Browse files
feat: enhance local binary process check when using user's own process
1 parent 01ac654 commit 9ba166c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/lib/local.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,18 @@ export async function ensureLocalBinarySetup(
8282

8383
if (config.USE_OWN_LOCAL_BINARY_PROCESS) {
8484
logger.info(
85-
"Using user's own BrowserStack Local binary process, skipping setup...",
85+
"Using user's own BrowserStack Local binary process, checking if it's running...",
86+
);
87+
88+
const isRunning = await isBrowserStackLocalRunning();
89+
if (!isRunning) {
90+
throw new Error(
91+
"USE_OWN_LOCAL_BINARY_PROCESS is enabled but BrowserStack Local process is not running. Please start your BrowserStack Local binary process first.",
92+
);
93+
}
94+
95+
logger.info(
96+
"BrowserStack Local process is running, proceeding with user's own process.",
8697
);
8798
return;
8899
}

0 commit comments

Comments
 (0)