mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-18 12:14:32 +00:00
test(telegram): align webhook grammy mock
This commit is contained in:
@@ -73,6 +73,10 @@ vi.mock("grammy", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("grammy")>();
|
||||
return {
|
||||
...actual,
|
||||
API_CONSTANTS: actual.API_CONSTANTS ?? {
|
||||
DEFAULT_UPDATE_TYPES: ["message"],
|
||||
ALL_UPDATE_TYPES: ["message"],
|
||||
},
|
||||
webhookCallback: webhookCallbackSpy,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user