MCPcopy Index your code
hub / github.com/coder/coder / makeChat

Function makeChat

site/src/api/queries/chats.test.ts:108–130  ·  view source on GitHub ↗
(
	id: string,
	overrides?: Partial<TypesGen.Chat>,
)

Source from the content-addressed store, hash-verified

106};
107
108const makeChat = (
109 id: string,
110 overrides?: Partial<TypesGen.Chat>,
111): TypesGen.Chat => ({
112 id,
113 organization_id: "test-org-id",
114 owner_id: "owner-1",
115 owner_username: "owner",
116 last_model_config_id: "model-1",
117 mcp_server_ids: [],
118 labels: {},
119 title: `Chat ${id}`,
120 status: "running",
121 created_at: "2025-01-01T00:00:00.000Z",
122 updated_at: "2025-01-01T00:00:00.000Z",
123 archived: false,
124 pin_order: 0,
125 has_unread: false,
126 client_type: "ui",
127 last_turn_summary: null,
128 children: [],
129 ...overrides,
130});
131
132const createTestQueryClient = (): QueryClient =>
133 new QueryClient({

Callers 2

chats.test.tsFile · 0.70
seedAllActiveQueriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected