diff --git a/extensions/feishu/src/media.test.ts b/extensions/feishu/src/media.test.ts index 44a4ddb4e99..cf7083a0fb9 100644 --- a/extensions/feishu/src/media.test.ts +++ b/extensions/feishu/src/media.test.ts @@ -343,6 +343,9 @@ describe("sendMediaFeishu msg_type routing", () => { localRoots: channelRoots, }), ); + // readFile bypass must NOT be injected for a plain array of roots. + const callArg = loadWebMediaMock.mock.calls[0][1] as Record; + expect(callArg).not.toHaveProperty("readFile"); }); it("honors explicit empty localRoots (no fallback to context mediaLocalRoots)", async () => {