mirror of
https://github.com/morluto/rea.git
synced 2026-11-18 04:34:13 +00:00
* fix(cli)!: own MCP client registration boundaries * fix(cli): bind registration to native connection facts * test(cli): isolate registration failure and fixture controls * test(cli): distinguish native syntax and launcher alignment * fix(cli): preserve registration selection and cancellation * fix(cli): honor Goose and Zed native settings paths * fix(cli): honor registration output controls * fix(cli): reject disabled Junie global locations
31 lines
924 B
TypeScript
31 lines
924 B
TypeScript
import { expect, it } from "vitest";
|
|
|
|
import { runSetup } from "./Setup.js";
|
|
import { FakeSetupHost, options } from "./Setup.fixture.js";
|
|
import { supportedClientRegistrationProfile } from "./SupportedClients.js";
|
|
|
|
it("refreshes doctor after approved setup changes", async () => {
|
|
const host = new FakeSetupHost();
|
|
host.doctorHealthy = false;
|
|
host.skill = "unchanged";
|
|
host.clients = [
|
|
{
|
|
name: "codex",
|
|
registrationProfile: supportedClientRegistrationProfile("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);
|
|
});
|