aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmail.com>2026-07-28 20:34:49 +0530
committerAman Kumar <145339995+amankumarsingh77@users.noreply.github.com>2026-08-02 19:12:46 +0530
commita9bdbd8590801cd9c2fa0cda6203948ac19a779c (patch)
tree060ced4709815f9415fc1172842ed25d97de545f /test
parent34e5cfdcbe29bbb5f2f46ba54eb67903abd9274d (diff)
refactor: tidy the whitespace the comment removal left behind
Drops leading blank lines where a file header was removed, collapses double blank lines, and closes the empty catch/handler blocks whose only content had been a comment. Whitespace only. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test')
-rw-r--r--test/manual/e2e-test.ts2
-rw-r--r--test/manual/profile-concurrency-test.ts12
-rw-r--r--test/manual/profile-e2e-test.ts15
-rw-r--r--test/manual/socket-guard-test.ts1
4 files changed, 9 insertions, 21 deletions
diff --git a/test/manual/e2e-test.ts b/test/manual/e2e-test.ts
index 659409f..81cb4df 100644
--- a/test/manual/e2e-test.ts
+++ b/test/manual/e2e-test.ts
@@ -34,7 +34,6 @@ async function main() {
await ipcServer.start();
console.log("Daemon started ✓");
-
console.log("\nConnecting pi client (DaemonTransport)...");
const transport = createDaemonTransport("pi-e2e-test");
@@ -42,7 +41,6 @@ async function main() {
check(connectResult.success, `Client connect: ${connectResult.success ? "ok" : connectResult.error.message}`);
check(transport.state() === "open", "Transport state is open");
-
let rawRequests: WireRequest[] = [];
ipcServer.onMessage((msg, client) => {
if (msg.type === "request") {
diff --git a/test/manual/profile-concurrency-test.ts b/test/manual/profile-concurrency-test.ts
index 05e06bc..1a5771d 100644
--- a/test/manual/profile-concurrency-test.ts
+++ b/test/manual/profile-concurrency-test.ts
@@ -44,8 +44,7 @@ const killTree = (pid: number | undefined): void => {
if (process.platform === "win32") {
try {
execFileSync("taskkill.exe", ["/pid", String(pid), "/T", "/F"], { stdio: "ignore" });
- } catch {
- }
+ } catch {}
return;
}
try {
@@ -53,8 +52,7 @@ const killTree = (pid: number | undefined): void => {
} catch {
try {
process.kill(pid, "SIGKILL");
- } catch {
- }
+ } catch {}
}
};
@@ -81,8 +79,7 @@ async function scenario(exePath: string, label: string, pinned: boolean): Promis
try {
const res = await fetch(`http://127.0.0.1:${PORT}/json/version`);
if (res.ok) endpoint = ((await res.json()) as { webSocketDebuggerUrl: string }).webSocketDebuggerUrl;
- } catch {
- }
+ } catch {}
}
if (!endpoint) {
check(false, `${label}: browser exposed its DevTools endpoint`);
@@ -144,8 +141,7 @@ async function scenario(exePath: string, label: string, pinned: boolean): Promis
killTree(browser.pid);
try {
rmSync(udd, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 });
- } catch {
- }
+ } catch {}
}
}
diff --git a/test/manual/profile-e2e-test.ts b/test/manual/profile-e2e-test.ts
index 6981b7a..e1ab95c 100644
--- a/test/manual/profile-e2e-test.ts
+++ b/test/manual/profile-e2e-test.ts
@@ -47,8 +47,7 @@ function findBrowser(): string | undefined {
try {
const resolved = execFileSync("which", [name], { encoding: "utf8" }).trim();
if (resolved) return resolved;
- } catch {
- }
+ } catch {}
}
}
return undefined;
@@ -96,8 +95,7 @@ async function waitForEndpoint(deadlineMs = 30_000): Promise<boolean> {
try {
const res = await fetch(`http://127.0.0.1:${PORT}/json/version`);
if (res.ok) return true;
- } catch {
- }
+ } catch {}
await sleep(500);
}
return false;
@@ -132,8 +130,7 @@ async function main(): Promise<void> {
if (process.platform === "win32") {
try {
execFileSync("taskkill.exe", ["/pid", String(browser.pid), "/T", "/F"], { stdio: "ignore" });
- } catch {
- }
+ } catch {}
} else {
try {
// detached:true put the browser in its own process group, so the negative pid signals the whole group.
@@ -141,14 +138,12 @@ async function main(): Promise<void> {
} catch {
try {
browser.kill("SIGKILL");
- } catch {
- }
+ } catch {}
}
}
try {
rmSync(udd, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 });
- } catch {
- }
+ } catch {}
};
try {
diff --git a/test/manual/socket-guard-test.ts b/test/manual/socket-guard-test.ts
index 1b6c4d7..3664bb4 100644
--- a/test/manual/socket-guard-test.ts
+++ b/test/manual/socket-guard-test.ts
@@ -1,4 +1,3 @@
-
import { access } from "node:fs/promises";
import { setTimeout as sleep } from "node:timers/promises";
import { spawn } from "node:child_process";