MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / createMockSettings

Function createMockSettings

packages/backend/src/repoIndexManager.test.ts:167–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166// Helper to create mock Settings
167const 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
189const createMockPromClient = () => ({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected