Files
fusion/packages/dashboard/src/__tests__/droid-cli-probe.test.ts
Fusion 5be5da1938 feat(FN-3332): add droid runtime plugin with event bridge and process manag
The merge delivers a new `fusion-plugin-droid-runtime` plugin providing a full MCP server and runtime adapter for droid-based agents, with event bridging, process management, tool mapping, and a prompt builder. It also adds agent delegation and org hierarchy tools to the pi extension, while fixing a

Fusion-Task-Id: FN-3332
2026-05-04 03:04:33 -07:00

22 lines
610 B
TypeScript

import { describe, expect, it, vi } from "vitest";
vi.mock("@fusion-plugin-examples/droid-runtime/probe", () => ({
probeDroidBinary: vi.fn(async () => ({
available: true,
authenticated: true,
version: "1.0.0",
binaryPath: "/usr/bin/droid",
probeDurationMs: 5,
})),
}));
import { probeDroidCli } from "../droid-cli-probe.js";
describe("probeDroidCli", () => {
it("delegates to plugin probe and returns shaped status", async () => {
const result = await probeDroidCli();
expect(result.available).toBe(true);
expect(result.probeDurationMs).toBeTypeOf("number");
});
});