MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / expectTextOutput

Function expectTextOutput

packages/agent-core/test/loop/hooks.e2e.test.ts:16–19  ·  view source on GitHub ↗
(output: unknown)

Source from the content-addressed store, hash-verified

14import { EchoTool, FailingTool, type EchoInput } from './fixtures/tools';
15
16function expectTextOutput(output: unknown): string {
17 expect(typeof output).toBe('string');
18 return output as string;
19}
20
21describe('runTurn — beforeStep hook', () => {
22 it('passes through when the hook returns undefined', async () => {

Callers 1

hooks.e2e.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected