Skip to content

Commit 9f3ad46

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
test(tools): type bounded response fixture
1 parent 4d2cb22 commit 9f3ad46

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/sim/tools/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
import { fileGetContentTool } from '@/tools/file/get'
3838
import { memoryAddTool } from '@/tools/memory/add'
3939
import { tableBatchInsertRowsTool } from '@/tools/table/batch_insert_rows'
40+
import type { ToolConfig } from '@/tools/types'
4041
import { workflowExecutorTool } from '@/tools/workflow/executor'
4142

4243
// Hoisted mock state - these are available to vi.mock factories
@@ -3031,9 +3032,9 @@ describe('Automatic Internal Route Detection', () => {
30313032
success: true,
30323033
output: { result: 'accepted' },
30333034
}),
3034-
}
3035+
} satisfies ToolConfig
30353036
const originalTools = { ...tools }
3036-
;(tools as any).test_larger_bounded_external_tool = mockTool
3037+
tools.test_larger_bounded_external_tool = mockTool
30373038
mockValidateUrlWithDNS.mockResolvedValue({ isValid: true, resolvedIP: '93.184.216.34' })
30383039
const body = new TextEncoder().encode('{"ok":true}')
30393040
mockSecureFetchWithPinnedIP.mockResolvedValue({

0 commit comments

Comments
 (0)