From 9e983ef8e106a19d8bca6863299c0a2eedfbdaaf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 10:33:03 +0100 Subject: [PATCH] test: stabilize full test suite --- src/agents/tools/pdf-tool.helpers.test.ts | 6 ++++++ src/media-understanding/defaults.test.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/agents/tools/pdf-tool.helpers.test.ts b/src/agents/tools/pdf-tool.helpers.test.ts index c18083556e4..dd45fcc6f8a 100644 --- a/src/agents/tools/pdf-tool.helpers.test.ts +++ b/src/agents/tools/pdf-tool.helpers.test.ts @@ -26,6 +26,12 @@ vi.mock("../../plugins/plugin-registry.js", () => ({ }), })); +vi.mock("../../plugins/current-plugin-metadata-snapshot.js", () => ({ + getCurrentPluginMetadataSnapshot: () => ({ + plugins: pdfMetadataPlugins, + }), +})); + import { coercePdfAssistantText, coercePdfModelConfig, diff --git a/src/media-understanding/defaults.test.ts b/src/media-understanding/defaults.test.ts index d7024f05206..b5e5108c03c 100644 --- a/src/media-understanding/defaults.test.ts +++ b/src/media-understanding/defaults.test.ts @@ -91,6 +91,12 @@ vi.mock("../plugins/manifest-contract-eligibility.js", () => ({ }), })); +vi.mock("../plugins/current-plugin-metadata-snapshot.js", () => ({ + getCurrentPluginMetadataSnapshot: () => ({ + plugins: mediaMetadataPlugins, + }), +})); + import { providerSupportsNativePdfDocument, resolveAutoMediaKeyProviders,