MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / makeCtx

Function makeCtx

test/web-search.test.ts:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import type { ToolContext } from '../src/tools/base.js';
7
8function makeCtx(): ToolContext {
9 return {
10 cwd: process.cwd(),
11 sessionId: 'test',
12 transaction: {} as any,
13 permissions: { check: () => ({ ok: true }) } as any,
14 askUser: async () => 'allow',
15 signal: new AbortController().signal,
16 emit: () => {},
17 } as ToolContext;
18}
19
20describe('DuckDuckGo HTML parser', () => {
21 // Synthetic but format-accurate fixture. Real DDG markup has more attributes; the

Callers 1

web-search.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected