( id: string, overrides?: Partial<TypesGen.Chat>, )
| 106 | }; |
| 107 | |
| 108 | const 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 | |
| 132 | const createTestQueryClient = (): QueryClient => |
| 133 | new QueryClient({ |
no outgoing calls
no test coverage detected