Skip to content

Commit b51e11c

Browse files
committed
test(doctor): fix existsSync mock for agentmemory service on linux
1 parent 8bc8dc6 commit b51e11c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cli/commands/doctor/doctor.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ describe("AgentMemory doctor checks", () => {
347347

348348
it("reports missing AgentMemory binary when a service file is installed", async () => {
349349
vi.mocked(existsSync).mockImplementation((p) =>
350-
String(p).endsWith("dev.oma.agentmemory.plist"),
350+
String(p).endsWith("dev.oma.agentmemory.plist") ||
351+
String(p).endsWith("oma-agentmemory.service"),
351352
);
352353

353354
const reportPromise = collectDoctorReport();

0 commit comments

Comments
 (0)