From f33ab9bf38248cb7fbb142ac16d21b4af70f737c Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 24 Oct 2026 04:03:38 +0800 Subject: [PATCH] test(ida): preserve exact optional resource method shape --- tests/fixtures/idaMcp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/idaMcp.ts b/tests/fixtures/idaMcp.ts index b79956590a..84682142fc 100644 --- a/tests/fixtures/idaMcp.ts +++ b/tests/fixtures/idaMcp.ts @@ -95,7 +95,7 @@ export class RecordingIdaMcp implements IdaMcpConnection { } /** Tool names the fake server advertises; defaults to the profile's full set. */ tools?: readonly string[]; - readResource?: IdaMcpConnection["readResource"]; + readResource?: NonNullable; async connect() { this.connects += 1; return this.tools ?? (this.mode === "attached" ? legacyNames : modernNames);