2026-01-14 04:49:17 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { defineConfig } from 'vitest/config';
|
2026-02-17 14:59:33 -08:00
|
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
|
import * as path from 'node:path';
|
|
|
|
|
|
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
2026-01-14 04:49:17 +00:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-02-17 14:59:33 -08:00
|
|
|
resolve: {
|
|
|
|
|
conditions: ['test'],
|
|
|
|
|
},
|
2026-01-14 04:49:17 +00:00
|
|
|
test: {
|
|
|
|
|
testTimeout: 300000, // 5 minutes
|
2026-01-14 07:08:05 +00:00
|
|
|
reporters: ['default', 'json'],
|
|
|
|
|
outputFile: {
|
|
|
|
|
json: 'evals/logs/report.json',
|
|
|
|
|
},
|
2026-01-14 04:49:17 +00:00
|
|
|
include: ['**/*.eval.ts'],
|
2026-02-17 14:59:33 -08:00
|
|
|
environment: 'node',
|
|
|
|
|
globals: true,
|
|
|
|
|
alias: {
|
|
|
|
|
react: path.resolve(__dirname, '../node_modules/react'),
|
|
|
|
|
},
|
|
|
|
|
setupFiles: [path.resolve(__dirname, '../packages/cli/test-setup.ts')],
|
|
|
|
|
server: {
|
|
|
|
|
deps: {
|
|
|
|
|
inline: [/@google\/gemini-cli-core/],
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-01-14 04:49:17 +00:00
|
|
|
},
|
|
|
|
|
});
|