test(anthropic): type node invoke mock from runtime (#107421)

This commit is contained in:
Peter Steinberger
2026-07-14 04:39:47 -07:00
committed by GitHub
parent 1b02289fcf
commit 2b0cd2761c
+1 -1
View File
@@ -513,7 +513,7 @@ describe("Claude session catalog", () => {
invocableCommands: commands.filter((command) => authorizedCommands.has(command)),
},
];
const invoke = vi.fn(async ({ command }: { command: string }) => {
const invoke = vi.fn(async ({ command }: Parameters<PluginRuntime["nodes"]["invoke"]>[0]) => {
if (command === CLAUDE_SESSIONS_LIST_COMMAND) {
return {
payloadJSON: JSON.stringify({