refactor: finalize plugin-sdk bridge cleanup
This commit is contained in:
parent
841b2ca07d
commit
713ab753c2
@ -4,10 +4,15 @@ import path from "node:path";
|
|||||||
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import { NON_ENV_SECRETREF_MARKER } from "../agents/model-auth-markers.js";
|
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", () => ({
|
vi.mock("../plugins/provider-runtime.js", () => ({
|
||||||
resolveProviderUsageAuthWithPlugin: (...args: unknown[]) =>
|
resolveProviderUsageAuthWithPlugin: (...args: Parameters<ResolveProviderUsageAuthWithPlugin>) =>
|
||||||
resolveProviderUsageAuthWithPluginMock(...args),
|
resolveProviderUsageAuthWithPluginMock(...args),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user