Skip to content

Commit f3c287a

Browse files
committed
fix backend tests
1 parent b231514 commit f3c287a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

backend/src/__tests__/loop-agent-steps.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { loopAgentSteps } from '../run-agent-step'
2929
import { clearAgentGeneratorCache } from '../run-programmatic-step'
3030
import { mockFileContext } from './test-utils'
3131

32-
import type { getAgentTemplate } from '@codebuff/agent-runtime/templates/agent-registry'
3332
import type { AgentTemplate } from '@codebuff/agent-runtime/templates/types'
3433
import type { StepGenerator } from '@codebuff/common/types/agent-template'
3534
import type {
@@ -68,16 +67,6 @@ describe('loopAgentSteps - runAgentStep vs runProgrammaticStep behavior', () =>
6867
insertTrace: () => {},
6968
}))
7069

71-
// Mock agent registry
72-
mockModule('@codebuff/backend/templates/agent-registry', () => ({
73-
getAgentTemplate: async ({
74-
agentId,
75-
localAgentTemplates,
76-
}: ParamsOf<typeof getAgentTemplate>) => {
77-
return localAgentTemplates[agentId] || mockTemplate
78-
},
79-
}))
80-
8170
// Mock template strings
8271
mockModule('@codebuff/backend/templates/strings', () => ({
8372
getAgentPrompt: async () => 'Mock prompt',

0 commit comments

Comments
 (0)