Skip to content

Commit 9e585e2

Browse files
committed
test(agents): export getRuntimeConfigSourceSnapshot from runtime-snapshot mock
Main's checks-node-compact-large shard is red: #126531 routed provider-model-routes through projectConfigOntoRuntimeSourceSnapshot, which reads getRuntimeConfigSourceSnapshot, and this suite's explicit vi.mock factory did not export it (24 failures). Return null so the projection no-ops and resolvers keep reading the provided config.
1 parent 3e7424a commit 9e585e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/agents/agent-command.live-model-switch.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ vi.mock("../skills/discovery/chat-commands.runtime.js", () => ({
397397

398398
vi.mock("../config/runtime-snapshot.js", () => ({
399399
getRuntimeConfigSnapshot: () => state.runtimeConfigMock ?? state.defaultRuntimeConfig,
400+
// No source snapshot: runtime-source projection no-ops and resolvers read the
401+
// provided config directly, matching this suite's pre-projection world.
402+
getRuntimeConfigSourceSnapshot: () => null,
400403
registerRuntimeConfigSnapshotPreparer: vi.fn(),
401404
setRuntimeConfigSnapshot: vi.fn(),
402405
}));

0 commit comments

Comments
 (0)