test(server): fix startup heartbeat counts mock typing

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-04-01 10:06:22 -07:00
1 parent 03d24d6110
commit 711a3e0163
1 file changed
+7 -1
+7 -1
View File
@@ -61,7 +61,13 @@ it.effect("launchStartupHeartbeat does not block the caller while counts are loa
yield* launchStartupHeartbeat.pipe(
Effect.provideService(ProjectionSnapshotQuery, {
getSnapshot: () => Effect.die("unused"),
getCounts: () => Deferred.await(releaseCounts),
getCounts: () =>
Deferred.await(releaseCounts).pipe(
Effect.as({
projectCount: 2,
threadCount: 3,
}),
),
getActiveProjectByWorkspaceRoot: () => Effect.succeed(Option.none()),
getFirstActiveThreadIdByProjectId: () => Effect.succeed(Option.none()),
getThreadCheckpointContext: () => Effect.succeed(Option.none()),