From 3e5544cc76557ef7952bc24867b5ff4bf6256e43 Mon Sep 17 00:00:00 2001 From: pashpashpash Date: Mon, 11 May 2026 00:41:41 -0700 Subject: [PATCH] test(zalouser): type mock Zalo constructor result --- extensions/zalouser/src/zca-client.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/zalouser/src/zca-client.test.ts b/extensions/zalouser/src/zca-client.test.ts index c291008671c..27e3d9c5c9c 100644 --- a/extensions/zalouser/src/zca-client.test.ts +++ b/extensions/zalouser/src/zca-client.test.ts @@ -14,7 +14,9 @@ describe("zca-client runtime loading", () => { const zcaClient = await import("./zca-client.js"); expect(runtimeFactory).not.toHaveBeenCalled(); - const client = await zcaClient.createZalo({ logging: false, selfListen: true }); + const client = (await zcaClient.createZalo({ logging: false, selfListen: true })) as { + options?: { logging?: boolean; selfListen?: boolean }; + }; expect(runtimeFactory).toHaveBeenCalledTimes(1); expect((client as { options?: { logging?: boolean; selfListen?: boolean } }).options).toEqual({