forked from google-gemini/gemini-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (25 loc) · 729 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
27 lines (25 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
testTimeout: 600000, // 10 minutes — performance profiling needs time for multiple samples
globalSetup: './globalSetup.ts',
reporters: ['default'],
include: ['**/*.test.ts'],
retry: 0, // No retries — noise is handled by IQR filtering and tolerance
fileParallelism: false, // Must run serially to avoid CPU contention
pool: 'forks',
poolOptions: {
forks: {
singleFork: true, // Single process for accurate per-test CPU readings
},
},
env: {
GEMINI_TEST_TYPE: 'perf',
},
},
});