(
toolDefinition: Tool | GetTool,
)
| 14 | |
| 15 | // Helper function to get the actual tool object |
| 16 | const getToolObject = async ( |
| 17 | toolDefinition: Tool | GetTool, |
| 18 | ): Promise<Tool> => { |
| 19 | if (typeof toolDefinition === "function") { |
| 20 | return toolDefinition(mockParams); |
| 21 | } |
| 22 | return toolDefinition; |
| 23 | }; |
| 24 | |
| 25 | it("should have all required parameters defined in properties for each tool", async () => { |
| 26 | const exportedTools = Object.values(toolDefinitions); |
no outgoing calls
no test coverage detected