Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/ai
/ middleware.test.ts
File
middleware.test.ts
packages/ai/tests/middleware.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/* eslint-disable @typescript-eslint/require-
await
*/
2
import
{ describe, expect, it, vi } from
'vitest'
3
import
{ chat } from
'../src/activities/chat/index'
4
import
{
Callers
nothing calls this directly
Calls
9
createMockAdapter
Function · 0.90
chat
Function · 0.90
collectChunks
Function · 0.90
getDeltas
Function · 0.90
serverTool
Function · 0.90
runChatWithMiddleware
Function · 0.85
abort
Method · 0.65
push
Method · 0.45
addEventListener
Method · 0.45
Tested by
no test coverage detected