diff --git a/apps/desktop/src/plugins/hermes-bots/relay.test.ts b/apps/desktop/src/plugins/hermes-bots/relay.test.ts index dd66dbd4f8..63088b7cc6 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),