()
| 165 | |
| 166 | // Helper to create mock Settings |
| 167 | const createMockSettings = (): Settings => ({ |
| 168 | maxFileSize: 2 * 1024 * 1024, |
| 169 | maxTrigramCount: 20000, |
| 170 | reindexIntervalMs: 1000 * 60 * 60, |
| 171 | resyncConnectionIntervalMs: 1000 * 60 * 60 * 24, |
| 172 | resyncConnectionPollingIntervalMs: 1000 * 1, |
| 173 | reindexRepoPollingIntervalMs: 1000 * 1, |
| 174 | maxConnectionSyncJobConcurrency: 8, |
| 175 | maxRepoIndexingJobConcurrency: 8, |
| 176 | maxRepoGarbageCollectionJobConcurrency: 8, |
| 177 | repoGarbageCollectionGracePeriodMs: 10 * 1000, |
| 178 | repoIndexTimeoutMs: 1000 * 60 * 60 * 2, |
| 179 | enablePublicAccess: false, |
| 180 | experiment_repoDrivenPermissionSyncIntervalMs: 1000 * 60 * 60 * 24, |
| 181 | experiment_userDrivenPermissionSyncIntervalMs: 1000 * 60 * 60 * 24, |
| 182 | repoDrivenPermissionSyncIntervalMs: 1000 * 60 * 60 * 24, |
| 183 | userDrivenPermissionSyncIntervalMs: 1000 * 60 * 60 * 24, |
| 184 | maxAccountPermissionSyncJobConcurrency: 8, |
| 185 | maxRepoPermissionSyncJobConcurrency: 8, |
| 186 | }); |
| 187 | |
| 188 | // Helper to create mock PromClient |
| 189 | const createMockPromClient = () => ({ |
no outgoing calls
no test coverage detected