mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 18:20:25 +00:00
test: stabilize agent auth and config suites
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user