test: avoid provider policy loading in media reply tests (#122857)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Peter Steinberger
2026-08-12 16:07:23 -07:00
committed by GitHub
parent a8b05c66d7
commit 01a5bcc5c0
@@ -62,6 +62,13 @@ vi.mock("../../agents/harness/hook-helpers.js", () => ({
runAgentHarnessBeforeMessageWriteHook: vi.fn((params: { message: unknown }) => params.message),
}));
// Provider policy projection belongs to its adapter and provider-local suites. These tests
// exercise prepared reply orchestration and supply their own model/thinking facts.
vi.mock("../../plugins/provider-policy-surface.js", () => ({
resolveDirectBundledProviderPolicySurface: () => null,
resolveTrustedExternalProviderPolicySurface: () => null,
}));
vi.mock("../../config/sessions/group.js", () => ({
resolveGroupSessionKey: vi.fn().mockReturnValue(undefined),
}));