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
@@ -2,6 +2,7 @@ import { afterEach, describe, expect, test } from "bun:test"
import { mkdtempSync, rmSync } from "node:fs"
import { join } from "node:path"
import { tmpdir } from "node:os"
import type { PluginInput } from "@opencode-ai/plugin"
import type { BackgroundManager, BackgroundTask } from "../../features/background-agent"
import { readContinuationMarker } from "../../features/run-continuation-state"
import { createStopContinuationGuardHook } from "./index"
@@ -37,7 +38,7 @@ describe("stop-continuation-guard", () => {
},
},
directory: createTempDir(),
} as any
} as unknown as PluginInput
}
function createBackgroundTask(status: BackgroundTask["status"], id: string): BackgroundTask {