Skip to content

Commit 1046864

Browse files
committed
test(crestodian): preserve model input mock exports
1 parent 5f7a67f commit 1046864

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/crestodian/operations.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ vi.mock("../commands/models/shared.js", () => ({
197197
}),
198198
}));
199199

200-
vi.mock("../config/model-input.js", () => ({
200+
vi.mock("../config/model-input.js", async (importOriginal) => ({
201+
...(await importOriginal<typeof import("../config/model-input.js")>()),
201202
resolveAgentModelPrimaryValue: (model?: string | { primary?: string }) =>
202203
typeof model === "string" ? model : model?.primary,
203204
}));

‎src/crestodian/rescue-message.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ vi.mock("../commands/models/shared.js", () => ({
101101
}),
102102
}));
103103

104-
vi.mock("../config/model-input.js", () => ({
104+
vi.mock("../config/model-input.js", async (importOriginal) => ({
105+
...(await importOriginal<typeof import("../config/model-input.js")>()),
105106
resolveAgentModelPrimaryValue: (model?: string | { primary?: string }) =>
106107
typeof model === "string" ? model : model?.primary,
107108
}));

0 commit comments

Comments
 (0)