import { ModuleSetup } from '../../core/types.js';
import { setupTestingFrameworkTools } from './tools.js';

/**
 * Testing Framework Module Setup
 * 
 * Provides comprehensive test management tools including:
 * - Test execution with coverage analysis
 * - Test result tracking and trends
 * - Flaky test detection
 * - Coverage analysis and recommendations
 * - Test watching and auto-rerun
 * - Baseline comparisons
 */
export const testingFrameworkModule: ModuleSetup = {
  name: 'testing-framework',
  version: '2.0.0',
  description: 'Comprehensive test management and analysis tools',
  
  async setup(context) {
    // Module initialization logic can go here if needed
    return {
      success: true
    };
  },

  async getTools() {
    const { tools } = await setupTestingFrameworkTools();
    return tools;
  }
};