mirror of
https://github.com/morluto/rea
synced 2026-10-26 22:28:27 -04:00
392f1f3107
Share parser modes and collision-free composite keys, enforce architecture guards, and consolidate redundant unit assertions into filesystem, CLI, MCP, and producer-backed workflows. Preserve concurrent upstream boundary fixes and exclude legacy Objective-C class-name bookkeeping labels. Validation: source/composition suites (3358 passing), focused canonical digest and MCP checks, typecheck/lint, Knip, formatting, architecture guards, and real Foundation archive and Apple legacy simulator CLI/MCP verification. No real Hopper, Ghidra, or IDA verification claim.
24 lines
750 B
TypeScript
24 lines
750 B
TypeScript
import { expect, it } from "vitest";
|
|
|
|
import { runSetup } from "./Setup.js";
|
|
import { FakeSetupHost, options } from "./Setup.fixture.js";
|
|
|
|
it("refreshes doctor after approved setup changes", async () => {
|
|
const host = new FakeSetupHost();
|
|
host.doctorHealthy = false;
|
|
host.skill = "unchanged";
|
|
host.clients = [{ name: "codex", configPath: "/codex.json" }];
|
|
const configureClient = host.configureClient;
|
|
host.configureClient = (client, providerEnvironment, command) => {
|
|
host.doctorHealthy = true;
|
|
return configureClient(client, providerEnvironment, command);
|
|
};
|
|
|
|
const result = await runSetup(
|
|
{ ...options(true), clientIds: ["codex"], installSkill: false },
|
|
host,
|
|
);
|
|
|
|
expect(result.doctor.healthy).toBe(true);
|
|
});
|