/** * Photon Test Runner * * Discovers and runs tests from: * - External .test.ts files (preferred — companion to .photon.ts) * - Inline test* methods in .photon.ts (legacy, backward compatible) * * Supports multiple test modes: * - direct: Call methods directly on instance (unit tests) * - cli: Call methods via CLI subprocess (integration tests) * - mcp: Call methods via MCP protocol (integration tests) * * Usage: photon test [photon] [testName] [--mode direct|cli|all] */ export type TestMode = 'direct' | 'cli' | 'mcp' | 'all'; export interface TestResult { photon: string; test: string; passed: boolean; skipped?: boolean; duration: number; error?: string; message?: string; mode: 'direct' | 'cli' | 'mcp'; issueUrl?: string; } export interface TestSummary { total: number; passed: number; failed: number; skipped: number; duration: number; results: TestResult[]; mode: TestMode; } /** * List all tests for a photon (external + inline). * Used by Beam UI to discover available tests. */ export declare function listTests(photonPath: string, instance?: any): Promise>; /** * Main test runner */ export declare function runTests(workingDir: string, photonName?: string, testName?: string, options?: { json?: boolean; mode?: TestMode; }): Promise; //# sourceMappingURL=test-runner.d.ts.map