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

File use-chat.test.ts

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

Source from the content-addressed store, hash-verified

1import { waitFor } from '@solidjs/testing-library'
2import type { ModelMessage } from '@tanstack/ai'
3import { describe, expect, it, vi } from 'vitest'
4import type { UIMessage } from '../src/types'

Callers

nothing calls this directly

Calls 12

renderUseChatFunction · 0.90
createTextChunksFunction · 0.90
createToolCallChunksFunction · 0.90
reloadMethod · 0.80
setMessagesMethod · 0.80
sendMessageMethod · 0.65
appendMethod · 0.65
clearMethod · 0.65
stopMethod · 0.45
addToolResultMethod · 0.45

Tested by

no test coverage detected