mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 00:21:21 +00:00
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
32 lines
766 B
TypeScript
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'),
|
|
},
|
|
},
|
|
});
|