(config: Config, ids: string[], fallbackId = "fffffffff0")
| 280 | } |
| 281 | |
| 282 | function stubStableIds(config: Config, ids: string[], fallbackId = "fffffffff0"): void { |
| 283 | let nextIdIndex = 0; |
| 284 | const configWithStableId = config as unknown as { generateStableId: () => string }; |
| 285 | configWithStableId.generateStableId = () => ids[nextIdIndex++] ?? fallbackId; |
| 286 | } |
| 287 | |
| 288 | function createAIServiceMocks( |
| 289 | config: Config, |
no outgoing calls
no test coverage detected