/** * Test Impact Analysis — Smart test ordering based on risk signals. * * Analyzes test files to determine priority based on: * - File content patterns (security, safety keywords) * - Recent failure history * - Stability over time * - File modification recency */ export type RiskLevel = 'HIGH' | 'MEDIUM' | 'LOW'; export interface TestRiskAssessment { file: string; name: string; risk: RiskLevel; score: number; reasons: string[]; } export interface ImpactAnalysisResult { assessments: TestRiskAssessment[]; totalFiles: number; highRisk: number; mediumRisk: number; lowRisk: number; } export interface ImpactAnalysisOptions { /** History file for failure tracking */ historyFile?: string; /** Days to consider "stable" if no failures */ stableDays?: number; /** Changed files to check for impact */ changedFiles?: string[]; } /** * Analyze risk of a single test file. */ export declare function analyzeTestFile(filePath: string): TestRiskAssessment; /** * Analyze all test files in a directory. */ export declare function analyzeTestDirectory(dir: string, options?: ImpactAnalysisOptions): ImpactAnalysisResult; /** * Format impact analysis results for display. */ export declare function formatImpactAnalysis(result: ImpactAnalysisResult): string; //# sourceMappingURL=test-impact.d.ts.map