Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

test(site): eyes 测试补上 document 桩,修复 CI 一直失败

dyk98a4850ab58bcf
diff --git a/site/tests/eyes.test.ts b/site/tests/eyes.test.ts
index 388f147..4f9f4df 100644
--- a/site/tests/eyes.test.ts
+++ b/site/tests/eyes.test.ts
@@ -2,6 +2,7 @@
import { describe, expect, it, vi } from "vitest";
vi.stubGlobal("matchMedia", () => ({ matches: false, addEventListener() {} }));
+vi.stubGlobal("document", { querySelectorAll: () => [] });
const { aim, aimFace } = await import("../src/lib/eyes");
const rect = (size: number) => ({ left: 500, top: 500, width: size, height: size });