Skip to content

Commit 2ea7c51

Browse files
committed
test(agents): avoid provider runtime in subagent spawn tests
1 parent 7f95733 commit 2ea7c51

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/agents/subagent-spawn.test-helpers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ export async function loadSubagentSpawnModuleForTest(params: {
194194

195195
const resetSubagentRegistryForTests = vi.fn();
196196

197+
vi.doMock("./provider-model-normalization.runtime.js", () => ({
198+
normalizeProviderModelIdWithRuntime: () => undefined,
199+
}));
200+
197201
vi.doMock("./subagent-spawn.runtime.js", () => ({
198202
callGateway: (opts: unknown) => params.callGatewayMock(opts),
199203
buildSubagentSystemPrompt: () => "system-prompt",

0 commit comments

Comments
 (0)