mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-12 04:17:15 -07:00
42 lines
899 B
TypeScript
42 lines
899 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'node:path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
testTimeout: 120000,
|
|
hookTimeout: 60000,
|
|
globals: true,
|
|
environment: 'node',
|
|
setupFiles: ['./globalSetup.ts'],
|
|
globalSetup: ['./globalSetup.ts'],
|
|
alias:
|
|
process.env.USE_PUBLISHED_PACKAGES === 'true'
|
|
? {
|
|
'@google/gemini-cli-core': path.resolve(
|
|
__dirname,
|
|
'../node_modules/@google-gemini/gemini-cli-core',
|
|
),
|
|
}
|
|
: {},
|
|
reporters: ['default'],
|
|
include: ['**/*.test.ts'],
|
|
retry: 2,
|
|
fileParallelism: true,
|
|
poolOptions: {
|
|
threads: {
|
|
minThreads: 8,
|
|
maxThreads: 16,
|
|
},
|
|
},
|
|
env: {
|
|
GEMINI_TEST_TYPE: 'integration',
|
|
},
|
|
},
|
|
});
|