/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { Config } from '../config/config.js';
import { AuthType, } from '../core/contentGenerator.js';
/**
 * Creates a fake config instance for testing
 */
export function makeFakeConfig() {
    // Create a minimal config for testing purposes
    const params = {
        sessionId: 'test-session',
        targetDir: '/tmp/test',
        debugMode: false,
        cwd: '/tmp/test',
        model: 'gemini-2.0-flash-exp',
    };
    const config = new Config(params);
    // Set some reasonable defaults for testing
    config.setModel('gemini-2.0-flash-exp');
    // Set up a minimal contentGeneratorConfig for tests
    // This is normally done via refreshAuth() but we can set it directly for synchronous test setup
    const mockContentGeneratorConfig = {
        model: 'gemini-2.0-flash-exp',
        authType: AuthType.USE_GEMINI,
        apiKey: 'test-api-key',
    };
    // Use reflection to bypass readonly restrictions for test setup
    Object.defineProperty(config, 'contentGeneratorConfig', {
        value: mockContentGeneratorConfig,
        writable: true,
        configurable: true,
    });
    return config;
}
//# sourceMappingURL=config.js.map