@raiken/cli
Version: 
CLI tool for Raiken - AI-powered Playwright test generator
31 lines • 981 B
TypeScript
import { ProjectInfo } from './project-detector';
interface TestFile {
    name: string;
    path: string;
    content: string;
    createdAt: string;
    modifiedAt: string;
}
export declare class LocalFileSystemAdapter {
    private projectPath;
    private projectInfo;
    private testDirectory;
    private aiService;
    constructor(projectPath: string, projectInfo: ProjectInfo);
    getTestFiles(): Promise<TestFile[]>;
    saveTestFile(content: string, filename: string, tabId?: string): Promise<string>;
    deleteTestFile(testPath: string): Promise<void>;
    executeTest(testPath: string, config: any): Promise<{
        success: boolean;
        output?: string;
        error?: string;
        reportId?: string;
    }>;
    private collectTestArtifacts;
    private parsePlaywrightErrors;
    private parseStderrErrors;
    getReports(): Promise<any[]>;
    deleteReport(reportId: string): Promise<void>;
}
export {};
//# sourceMappingURL=filesystem-adapter.d.ts.map