summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-05-31 02:51:16 -0700
committerN. Taylor Mullen <[email protected]>2025-05-31 02:55:36 -0700
commit1a84d8f6741e71b6ee4175401182bec290d4e1d5 (patch)
tree044cfcc7a6ae05bb7d862e728f9e8d64a241c20c /packages/cli/src/ui/hooks/useGeminiStream.test.tsx
parentae8e2106bbc0311e8bc884d8d5303a02f82a51d0 (diff)
Test: Add comprehensive tests for useToolScheduler hook
- Introduces a suite of tests for the hook, covering various scenarios including: - Successful tool execution - Tool not found errors - Errors during - Errors during tool execution - Tool confirmation (approved and cancelled) - (currently skipped) - Live output updates - (currently skipped) - Cancellation of tool calls (before execution and during approval) - (currently skipped) - Execution of multiple tool calls - Preventing scheduling while other calls are running - (currently skipped) - Includes tests for the utility function to ensure correct mapping of tool call states to display objects. - Mocks dependencies like , , and individual instances. - Uses fake timers to control asynchronous operations. Note: Some tests involving complex asynchronous interactions (confirmations, live output, cancellations) are currently skipped due to challenges in reliably testing these scenarios with the current setup. These will be addressed in future work.
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.test.tsx')
0 files changed, 0 insertions, 0 deletions