refactor: finalize plugin-sdk bridge cleanup

This commit is contained in:
Tak Hoffman 2026-03-18 13:58:15 -05:00
parent 841b2ca07d
commit 713ab753c2
No known key found for this signature in database

View File

@ -4,10 +4,15 @@ import path from "node:path";
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { NON_ENV_SECRETREF_MARKER } from "../agents/model-auth-markers.js";
const resolveProviderUsageAuthWithPluginMock = vi.fn(async () => null);
type ResolveProviderUsageAuthWithPlugin =
typeof import("../plugins/provider-runtime.js").resolveProviderUsageAuthWithPlugin;
const resolveProviderUsageAuthWithPluginMock = vi.fn<ResolveProviderUsageAuthWithPlugin>(
async () => null,
);
vi.mock("../plugins/provider-runtime.js", () => ({
resolveProviderUsageAuthWithPlugin: (...args: unknown[]) =>
resolveProviderUsageAuthWithPlugin: (...args: Parameters<ResolveProviderUsageAuthWithPlugin>) =>
resolveProviderUsageAuthWithPluginMock(...args),
}));