UNPKG

@continue-reasoning/mini-agent

Version:

A platform-agnostic AI agent framework for building autonomous AI agents with tool execution capabilities

63 lines 1.9 kB
/** * @fileoverview Test Setup * * Global test setup file that runs before all tests. * This file sets up global mocks, test utilities, and environment configuration. */ export declare const testUtils: { /** * Create a mock function with type safety */ createMockFn: <T extends (...args: any[]) => any>(implementation?: T) => T & import("vitest").Mock<any[], unknown>; /** * Wait for a specified number of milliseconds */ wait: (ms: number) => Promise<unknown>; /** * Create a mock AbortSignal */ createMockAbortSignal: (aborted?: boolean) => { aborted: boolean; addEventListener: import("vitest").Mock<any, any>; removeEventListener: import("vitest").Mock<any, any>; dispatchEvent: import("vitest").Mock<any, any>; onabort: null; reason: undefined; throwIfAborted: import("vitest").Mock<any, any>; }; /** * Create a mock AbortController */ createMockAbortController: () => { signal: { aborted: boolean; addEventListener: import("vitest").Mock<any, any>; removeEventListener: import("vitest").Mock<any, any>; dispatchEvent: import("vitest").Mock<any, any>; onabort: null; reason: undefined; throwIfAborted: import("vitest").Mock<any, any>; }; abort: import("vitest").Mock<[], void>; }; /** * Generate a unique ID for tests */ generateTestId: () => string; /** * Create a mock timestamp */ createMockTimestamp: () => number; /** * Restore console for specific tests */ restoreConsole: () => void; /** * Mock console for specific tests */ mockConsole: () => void; }; declare global { var testUtils: typeof import('./setup.js').testUtils; } //# sourceMappingURL=setup.d.ts.map