Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

test(desktop): expect the plugin folder with the platform's separator

leen.zhou9158220a980f
diff --git a/apps/desktop/src/brain/runtime.test.ts b/apps/desktop/src/brain/runtime.test.ts
index dca7533..cd94164 100644
--- a/apps/desktop/src/brain/runtime.test.ts
+++ b/apps/desktop/src/brain/runtime.test.ts
@@ -1,3 +1,4 @@
+import { join } from "node:path";
import { describe, expect, it, vi } from "vitest";
import { memoryPorts } from "../test-port.ts";
import { startDesktopBrain } from "./runtime.ts";
@@ -29,7 +30,7 @@ describe("desktop brain adapter", () => {
await startDesktopBrain(options);
expect(module.startBrain).toHaveBeenCalledWith({
...options,
- pluginDir: "test-resources/plugins",
+ pluginDir: join("test-resources", "plugins"),
});
});
});