Files
Maestro/vitest.performance.config.mts
Pedram Amini 7182817718 MAESTRO: Add performance tests for thinking stream feature (Phase 6.5)
Created comprehensive test suite for large thinking streams (10-50KB+):
- RAF throttling efficiency tests validating chunk batching
- Large stream handling (10KB, 25KB, 50KB, 100KB+) with performance thresholds
- Memory efficiency tests (buffer clearing, cleanup on unmount)
- UI rendering performance tests
- Chunk batching edge cases (empty, tiny, interleaved multi-tab)
- Stress tests (sustained high-frequency, concurrent sessions)

Added test infrastructure:
- vitest.performance.config.mts for performance test configuration
- npm run test:performance script for running performance tests
2025-12-22 19:03:55 -06:00

32 lines
766 B
TypeScript

import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
/**
* Performance test configuration
* Run with: npx vitest run --config vitest.performance.config.mts
*/
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/__tests__/setup.ts'],
// Only include performance tests
include: ['src/__tests__/performance/**/*.{test,spec}.{ts,tsx}'],
exclude: [
'node_modules',
'dist',
'release',
],
testTimeout: 30000, // Longer timeout for performance tests
hookTimeout: 10000,
teardownTimeout: 5000,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});