fix(tests): replace as any with typed PluginInput mocks

This commit is contained in:
YeonGyu-Kim
2026-04-10 18:47:17 +09:00
parent bf5d1c58a4
commit e54f747916
3 changed files with 13 additions and 10 deletions
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, test } from "bun:test"
import type { PluginInput } from "@opencode-ai/plugin"
import { createKeywordDetectorHook } from "./index"
import { _resetForTesting, setMainSession } from "../../features/claude-code-session-state"
@@ -18,7 +19,7 @@ function createMockPluginInput(toastCalls: string[] = []) {
},
},
},
} as any
} as unknown as PluginInput
}
function createMockRalphLoop(startLoopCalls: StartLoopCall[]) {