MCPcopy
hub / github.com/coder/mux / createModelSetContext

Function createModelSetContext

src/browser/utils/chatCommands.test.ts:815–822  ·  view source on GitHub ↗
(api: SlashCommandContext["api"])

Source from the content-addressed store, hash-verified

813
814describe("processSlashCommand - model-set", () => {
815 const createModelSetContext = (api: SlashCommandContext["api"]): SlashCommandContext =>
816 createSlashCommandContext({
817 api,
818 onMessageSent: mock(() => undefined),
819 onCheckReviews: mock(() => undefined),
820 attachedReviewIds: [],
821 openSettings: mock(() => undefined),
822 });
823
824 test("reports backend verification failure for custom providers when config loading fails", async () => {
825 const getConfig = mock(() => Promise.reject(new Error("backend offline")));

Callers 1

Calls 1

Tested by

no test coverage detected