The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): give the relay test's plugin-sdk mock an atom
Hermes Agenta78aa6927bc6
diff --git a/apps/desktop/src/plugins/hermes-bots/relay.test.ts b/apps/desktop/src/plugins/hermes-bots/relay.test.tsindex dd66dbd4f8f..63088b7cc6c 100644--- a/apps/desktop/src/plugins/hermes-bots/relay.test.ts+++ b/apps/desktop/src/plugins/hermes-bots/relay.test.ts@@ -54,7 +54,12 @@ const { clearBotAttentionMock, hostMock, noteBotAttentionMock, UnboundedCache }}}))-vi.mock('@hermes/plugin-sdk', () => ({ host: hostMock, LruCache: UnboundedCache }))+// relay.ts imports ./shared, which holds the $pendingBotOpen atom.+vi.mock('@hermes/plugin-sdk', async () => {+ const { atom } = await import('nanostores')++ return { atom, host: hostMock, LruCache: UnboundedCache }+})vi.mock('./data', () => ({botHandle: (name: string) => (name === 'default' ? 'hermes' : name),