From d226afbc5cbfbd175ea9b6ee17b52fb37f6430a2 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 4 Jul 2026 09:19:04 +0200 Subject: [PATCH] test(telegram): type inbound body fixture --- extensions/telegram/src/bot-message-context.dm-threads.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/telegram/src/bot-message-context.dm-threads.test.ts b/extensions/telegram/src/bot-message-context.dm-threads.test.ts index 7f5ac027028f..714bc0497d7e 100644 --- a/extensions/telegram/src/bot-message-context.dm-threads.test.ts +++ b/extensions/telegram/src/bot-message-context.dm-threads.test.ts @@ -3,6 +3,7 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import type { TelegramInboundBodyResult } from "./bot-message-context.body.js"; import { resetTopicNameCacheForTest } from "./topic-name-cache.js"; type SessionRuntimeModule = typeof import("./bot-message-context.session.runtime.js"); @@ -10,7 +11,7 @@ type RecordInboundSessionFn = SessionRuntimeModule["recordInboundSession"]; type ResolveStorePathFn = SessionRuntimeModule["resolveStorePath"]; const { inboundBodyResult, recordInboundSessionMock, resolveStorePathMock } = vi.hoisted(() => { - const createInboundBodyResult = () => ({ + const createInboundBodyResult = (): TelegramInboundBodyResult => ({ bodyText: "hello", rawBody: "hello", historyKey: undefined,