ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
85 lines • 2.47 kB
TypeScript
/**
* Flutter Test Mode Detector
* Detects Flutter test environment and provides test-specific debugging capabilities
* Based on Cycle 22 user feedback for TDD enhancements
*/
export interface FlutterTestEnvironment {
isTestMode: boolean;
testFramework: 'flutter_test' | 'integration_test' | 'widget_test' | 'unit_test' | 'unknown';
hasTestRunner: boolean;
testFile?: string;
testType: 'widget' | 'integration' | 'unit' | 'golden' | 'unknown';
mockingFramework?: 'mockito' | 'mocktail' | 'built_in' | 'none';
authenticationMocks: {
detected: boolean;
providers: string[];
gaps: string[];
};
expectedWidgets: {
keys: string[];
patterns: string[];
missing: string[];
};
}
export interface TestModeConfiguration {
autoMockAuth: boolean;
skipAnimations: boolean;
fastPump: boolean;
providerStateInspection: boolean;
debugPaintSizeEnabled?: boolean;
customMocks?: string[];
timestamp?: number;
}
export declare class FlutterTestModeDetector {
private static instance;
static getInstance(): FlutterTestModeDetector;
/**
* Detect if we're in a Flutter test environment
*/
detectTestEnvironment(sessionId: string, page?: any): Promise<FlutterTestEnvironment>;
/**
* Check if current environment is Flutter test mode
*/
private isFlutterTestMode;
/**
* Detect test mode from environment without page access
*/
private detectTestModeFromEnvironment;
/**
* Detect the specific test framework being used
*/
private detectTestFramework;
/**
* Detect the type of test being run
*/
private detectTestType;
/**
* Detect mocking framework in use
*/
private detectMockingFramework;
/**
* Check if there's an active test runner
*/
private hasActiveTestRunner;
/**
* Analyze authentication mocks in the test environment
*/
private analyzeAuthenticationMocks;
/**
* Detect expected widgets from test code
*/
private detectExpectedWidgets;
/**
* Configure test mode settings
*/
configureTestMode(config: TestModeConfiguration): void;
/**
* Get current test mode configuration
*/
getTestModeConfiguration(): TestModeConfiguration | null;
/**
* Reset test mode detection
*/
reset(): void;
}
//# sourceMappingURL=flutter-test-mode-detector.d.ts.map