test: stabilize agent auth and config suites

This commit is contained in:
Peter Steinberger
2026-04-06 19:51:48 +01:00
parent aaa5dea358
commit 134ff61754
37 changed files with 853 additions and 512 deletions

View File

@@ -4,9 +4,15 @@ const { resolveProviderReasoningOutputModeWithPluginMock } = vi.hoisted(() => ({
resolveProviderReasoningOutputModeWithPluginMock: vi.fn(),
}));
vi.mock("../plugins/provider-runtime.js", () => ({
resolveProviderReasoningOutputModeWithPlugin: resolveProviderReasoningOutputModeWithPluginMock,
}));
vi.mock("../plugins/provider-runtime.js", async () => {
const actual = await vi.importActual<typeof import("../plugins/provider-runtime.js")>(
"../plugins/provider-runtime.js",
);
return {
...actual,
resolveProviderReasoningOutputModeWithPlugin: resolveProviderReasoningOutputModeWithPluginMock,
};
});
import { isReasoningTagProvider, resolveReasoningOutputMode } from "./provider-utils.js";