Skip to content

Commit 7af6696

Browse files
committed
Fix tests/types
1 parent 0577bb5 commit 7af6696

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

backend/src/__tests__/agent-registry.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mockModule('../util/logger', () => ({
5858
}))
5959

6060
// Create mock static templates that will be used by the agent registry
61-
const mockStaticTemplates = {
61+
const mockStaticTemplates: Record<string, AgentTemplate> = {
6262
base: {
6363
id: 'base',
6464
displayName: 'Base Agent',
@@ -89,11 +89,6 @@ const mockStaticTemplates = {
8989
},
9090
}
9191

92-
// Mock agent-list
93-
mockModule('../templates/agent-list', () => ({
94-
agentTemplates: mockStaticTemplates,
95-
}))
96-
9792
// Mock validation functions
9893
mockModule('@codebuff/common/templates/agent-validation', () => ({
9994
validateAgents: (agentTemplates: Record<string, DynamicAgentTemplate> = {}) => {

0 commit comments

Comments
 (0)