Files
rea/tests/boundary/providers/hopper/hopperArguments.test.ts
morluto 63bf91405c refactor!: enforce canonical evidence and provider boundaries
Deliver complete Evidence directly through MCP with required nullable analysis profiles and immutable per-server delivery settings. Bind selected environments at construction and require typed cleanup outcomes with retained retry ownership.

Remove test-only routing, duplicate session and snapshot metadata, producer-field repairs, and ambiguous provider arguments. Separate artifact byte identity from occurrence classification and retain typed source-map and partial native facts across CLI, MCP, and verifier consumers.

BREAKING CHANGE: obsolete Evidence envelopes, session aliases, incomplete snapshots, and missing normalized producer facts are no longer accepted.
2026-10-09 20:18:52 +08:00

26 lines
905 B
TypeScript

import { describe, expect, it } from "vitest";
import {
HopperFixtureLauncher,
startHopperFixtureClient,
} from "./hopperClient.fixture.js";
describe("Hopper wire arguments", () => {
it("retains omitted defaults and explicitly selected documents on the socket", async () => {
const launcher = new HopperFixtureLauncher();
const client = await startHopperFixtureClient(launcher);
for (const [operation, parameters] of [
["procedure_pseudo_code", { procedure: "main" }],
["list_strings", {}],
["set_bookmark", { address: "0x1000" }],
["procedure_assembly", { procedure: "main", document: "chosen" }],
] as const) {
await expect(
client.callTool(operation, parameters),
).resolves.toMatchObject({ ok: true });
const request = await launcher.waitForRequest(operation);
expect(request.params).toEqual(parameters);
}
});
});