Fix launch readiness automation

This commit is contained in:
morluto
2026-07-12 10:26:13 +08:00
parent 4dec415fc8
commit 6e1d9a53e0
6 changed files with 22 additions and 14 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ describe("configuration parsing integration", () => {
if (!result.ok) throw new Error("unreachable");
expect(result.value.hopperTargetPath).toBe("/usr/bin/true");
expect(result.value.hopperTargetKind).toBe("executable");
expect(result.value.hopperLoaderArgs).toEqual(["-l", "Mach-O", "--aarch64"]);
expect(result.value.hopperLoaderArgs).toEqual([
"-l",
"Mach-O",
"--aarch64",
]);
});
it("rejects target kind values outside the enum", () => {
+7 -4
View File
@@ -82,10 +82,13 @@ describe("full MCP integration with multi-tool sequences", () => {
});
it("preserves the complete 42-tool inventory with a session", async () => {
const session = new BinarySession((_path) => ({
callTool: () => Promise.resolve(ok(null)),
close: () => Promise.resolve(),
} satisfies BinaryClient));
const session = new BinarySession(
(_path) =>
({
callTool: () => Promise.resolve(ok(null)),
close: () => Promise.resolve(),
}) satisfies BinaryClient,
);
const server = createServer(
{ callTool: () => Promise.resolve(ok(null)) },
session,