Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Give the sign-in card's test store its bots, which the card now reads

Azad Jagtap3a863e2868fc
diff --git a/src/components/bot-buttons.test.ts b/src/components/bot-buttons.test.ts
index c605572e4a..f4271b2333 100644
--- a/src/components/bot-buttons.test.ts
+++ b/src/components/bot-buttons.test.ts
@@ -14,7 +14,7 @@ vi.mock("@/lib/interface-mode", () => ({ useAdvancedMode: () => false }));
vi.mock("@/lib/use-owner-or-admin", () => ({ useOwnerOrAdmin: () => true }));
vi.mock("@/state/store", async (importOriginal) => ({
...(await importOriginal<typeof import("@/state/store")>()),
- useStore: () => ({ state: {}, dispatch: fixture.dispatch }),
+ useStore: () => ({ state: { bots: [] }, dispatch: fixture.dispatch }),
}));
const { BOT_BUTTON, botButtonTone } = await import("@/lib/bot-button");