MCPcopy
hub / github.com/TanStack/ai / use-chat.test.ts

File use-chat.test.ts

packages/ai-react/tests/use-chat.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { ModelMessage, StreamChunk } from '@tanstack/ai'
2import { EventType } from '@tanstack/ai'
3import type { SubscribeConnectionAdapter } from '@tanstack/ai-client'
4import { act, renderHook, waitFor } from '@testing-library/react'

Callers

nothing calls this directly

Calls 15

renderUseChatFunction · 0.90
createTextChunksFunction · 0.90
useChatFunction · 0.90
createToolCallChunksFunction · 0.90
renderHookFunction · 0.85
resolveMethod · 0.80
reloadMethod · 0.80
setMessagesMethod · 0.80
nowMethod · 0.80
createDeferredFunction · 0.70
useChangingChatFunction · 0.70

Tested by

no test coverage detected