Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

750 B
Raw Blame
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);
});