mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 02:02:42 +00:00
test(server): stub workspace activity dependencies
Give generic session schedule fixtures an explicit empty heartbeat activity result and declare both activity dependencies in the git-watch fixture. This preserves strict stubs while covering the workspace descriptor inputs introduced by heartbeat projection.
This commit is contained in:
@@ -200,6 +200,7 @@ function createSessionForWorkspaceGitWatchTests(options?: {
|
||||
agentManager: createStub<SessionOptions["agentManager"]>({
|
||||
subscribe: () => () => {},
|
||||
listAgents: () => [],
|
||||
listProviderSubagentActivity: () => [],
|
||||
getAgent: () => null,
|
||||
}),
|
||||
agentStorage: createStub<SessionOptions["agentStorage"]>({
|
||||
@@ -259,6 +260,9 @@ function createSessionForWorkspaceGitWatchTests(options?: {
|
||||
dispose: () => {},
|
||||
}),
|
||||
workspaceGitService,
|
||||
scheduleService: createStub<SessionOptions["scheduleService"]>({
|
||||
listActiveHeartbeatActivity: async () => [],
|
||||
}),
|
||||
mcpBaseUrl: null,
|
||||
stt: null,
|
||||
tts: null,
|
||||
|
||||
@@ -160,7 +160,9 @@ function createHarness(input: {
|
||||
}),
|
||||
filesystem: { isDirectory: async () => true },
|
||||
chatService: createStub<SessionOptions["chatService"]>({}),
|
||||
scheduleService: createStub<SessionOptions["scheduleService"]>({}),
|
||||
scheduleService: createStub<SessionOptions["scheduleService"]>({
|
||||
listActiveHeartbeatActivity: async () => [],
|
||||
}),
|
||||
loopService: createStub<SessionOptions["loopService"]>({}),
|
||||
checkoutDiffManager: createStub<SessionOptions["checkoutDiffManager"]>({
|
||||
subscribe: async () => ({
|
||||
|
||||
@@ -55,7 +55,9 @@ export function asChatService(): SessionOptions["chatService"] {
|
||||
}
|
||||
|
||||
export function asScheduleService(): SessionOptions["scheduleService"] {
|
||||
return createStub<SessionOptions["scheduleService"]>({});
|
||||
return createStub<SessionOptions["scheduleService"]>({
|
||||
listActiveHeartbeatActivity: async () => [],
|
||||
});
|
||||
}
|
||||
|
||||
export function asLoopService(): SessionOptions["loopService"] {
|
||||
|
||||
Reference in New Issue
Block a user