test(linux): verify setup through CLI and MCP

This commit is contained in:
morluto
2026-07-13 21:20:51 +00:00
parent 75818d119e
commit 67504d2d51
20 changed files with 632 additions and 123 deletions
+18 -15
View File
@@ -198,22 +198,25 @@ describe("HopperClient", () => {
expect(Date.now() - startedAt).toBeLessThan(500);
});
it("reports an owned launcher exit during bridge startup", async () => {
const client = new HopperClient({
launcher: new ExitingLauncher(78),
startupTimeoutMs: 10_000,
});
clients.push(client);
const startedAt = Date.now();
const result = await client.start();
expect(result.ok).toBe(false);
if (!result.ok)
expect(result.error).toMatchObject({
_tag: "HopperProcessError",
exitCode: 78,
it.each([70, 71, 72, 73, 74, 75, 76, 77, 78, 79])(
"reports Linux adapter exit %i during bridge startup",
async (exitCode) => {
const client = new HopperClient({
launcher: new ExitingLauncher(exitCode),
startupTimeoutMs: 10_000,
});
expect(Date.now() - startedAt).toBeLessThan(500);
});
clients.push(client);
const startedAt = Date.now();
const result = await client.start();
expect(result.ok).toBe(false);
if (!result.ok)
expect(result.error).toMatchObject({
_tag: "HopperProcessError",
exitCode,
});
expect(Date.now() - startedAt).toBeLessThan(500);
},
);
it("allows a short-lived launcher to hand off bridge startup", async () => {
const client = new HopperClient({