Skip to content

Commit 9987b93

Browse files
committed
test(agents): preserve plugin metadata scope in model fixtures
1 parent 546b927 commit 9987b93

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎src/agents/embedded-agent-runner/model-resolution-consistency.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ vi.mock("./model.js", () => ({
7070
resolveModelAsync: resolveModelAsyncMock,
7171
}));
7272

73+
vi.mock("../provider-model-normalization.runtime.js", () => ({
74+
normalizeProviderModelIdWithRuntime: () => undefined,
75+
}));
76+
7377
vi.mock("../harness/runtime-plugin.js", () => ({
7478
ensureSelectedAgentHarnessPlugin: vi.fn(async () => undefined),
7579
}));
@@ -140,11 +144,6 @@ vi.mock("../../plugins/provider-runtime.js", () => ({
140144
prepareProviderRuntimeAuth: vi.fn(async () => undefined),
141145
}));
142146

143-
vi.mock("../../plugins/current-plugin-metadata-snapshot.js", () => ({
144-
getCurrentPluginMetadataSnapshot: () => ({ plugins: [] }),
145-
withPluginMetadataSnapshotScope: (_snapshot: unknown, run: () => unknown) => run(),
146-
}));
147-
148147
vi.mock("../provider-secret-egress.js", () => ({
149148
protectPreparedProviderRuntimeAuth: (value: unknown) => value,
150149
unwrapSecretSentinelsForProviderEgress: (value: unknown) => value,

0 commit comments

Comments
 (0)