MCPcopy Index your code
hub / github.com/TanStack/ai / client-persistor.test.ts

File client-persistor.test.ts

packages/ai-client/tests/client-persistor.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { beforeEach, describe, expect, it, vi } from 'vitest'
2import { EventType } from '@tanstack/ai/client'
3import { ChatPersistor } from '../src/client-persistor'
4import { createMockPersistence, createUIMessage } from './test-utils'

Callers

nothing calls this directly

Calls 15

createUIMessageFunction · 0.90
createMockPersistenceFunction · 0.90
createPersistorFunction · 0.85
flushAsyncFunction · 0.85
textContentFunction · 0.85
messagesSnapshotFunction · 0.85
readInitialMethod · 0.80
resolveMethod · 0.80
hydrateAsyncMethod · 0.80
notifyMessagesChangedMethod · 0.80
beginClearMethod · 0.80
shouldIgnoreChunkMethod · 0.80

Tested by

no test coverage detected