MCPcopy
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 */
2import { describe, expect, it, vi } from 'vitest'
3import { chat } from '../src/activities/chat/index'
4import {

Callers

nothing calls this directly

Calls 9

createMockAdapterFunction · 0.90
chatFunction · 0.90
collectChunksFunction · 0.90
getDeltasFunction · 0.90
serverToolFunction · 0.90
runChatWithMiddlewareFunction · 0.85
abortMethod · 0.65
pushMethod · 0.45
addEventListenerMethod · 0.45

Tested by

no test coverage detected