test: pass extensionContext in abort dedupe e2e

This commit is contained in:
Ayaan Zaidi
2026-02-17 13:07:52 +05:30
committed by Ayaan Zaidi
parent 1903c685c0
commit f8b9e26c47

View File

@@ -176,8 +176,15 @@ describe("before_tool_call hook deduplication (#15502)", () => {
});
const withAbort = wrapToolWithAbortSignal(wrapped, abortController.signal);
const [def] = toToolDefinitions([withAbort]);
const extensionContext = {} as Parameters<typeof def.execute>[4];
await def.execute("call-abort-dedup", { command: "ls" }, undefined, undefined, undefined);
await def.execute(
"call-abort-dedup",
{ command: "ls" },
undefined,
undefined,
extensionContext,
);
expect(hookRunner.runBeforeToolCall).toHaveBeenCalledTimes(1);
});