/** * Mock Context Factory * * Utilities for creating test contexts with sensible defaults. */ import type { TestContext } from "@wavespec/types"; /** * Creates a test context with smart defaults * * This utility makes it easy to create test contexts for adapter testing * without manually specifying every field. All fields can be overridden. * * @param overrides - Partial context to override defaults * @returns Complete TestContext with defaults filled in * * @example Basic usage * ```typescript * const ctx = createMockContext(); * // Returns: { mode: 'live', timeout: 60000, isolation: 'per_suite' } * ``` * * @example Override specific fields * ```typescript * const ctx = createMockContext({ * mode: 'replay', * timeout: 30000, * cassettePath: './cassettes/test.json' * }); * ``` * * @example With discovery cache * ```typescript * const mockCache: DiscoveryCache = { * getTools: async () => [{ name: 'add' }], * getPrompts: async () => [], * getResources: async () => [] * }; * * const ctx = createMockContext({ * discoveryCache: mockCache * }); * ``` */ export declare function createMockContext(overrides?: Partial): TestContext & { adapterConfig?: any; }; //# sourceMappingURL=mock-context.d.ts.map