test: keep native pdf provider tests off runtime hooks

This commit is contained in:
Peter Steinberger
2026-04-09 05:15:31 +01:00
parent 8053096ea4
commit a4cf0c765f

View File

@@ -1,6 +1,11 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import * as pdfNativeProviders from "./pdf-native-providers.js";
vi.mock("../../plugins/provider-runtime.js", () => ({
normalizeProviderTransportWithPlugin: (params: { context?: { baseUrl?: string } }) =>
params.context?.baseUrl ? { baseUrl: params.context.baseUrl } : undefined,
}));
const TEST_PDF_INPUT = { base64: "dGVzdA==", filename: "doc.pdf" } as const;
function makeAnthropicAnalyzeParams(