mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 08:31:19 +00:00
- Add integration test infrastructure in group-chat-test-utils.ts - Helper functions for agent selection, response waiting, cleanup - Support for SKIP_INTEGRATION_TESTS environment variable - Add 6 integration tests in group-chat.integration.test.ts - 6.1: Basic moderator response - 6.2: Two agents collaborate on addition task - 6.3: Agents reference chat log for context - 6.4: Moderator handles non-existent participant - 6.5: Chat log persists across restart - 6.6: Mixed agent types work together - Add vitest.integration.config.ts for integration tests - 3 minute timeout per test - Sequential execution to avoid agent conflicts - Add npm scripts: test:integration, test:integration:watch
35 lines
960 B
TypeScript
35 lines
960 B
TypeScript
/**
|
|
* @file vitest.integration.config.ts
|
|
* @description Vitest configuration for Group Chat integration tests.
|
|
*
|
|
* Integration tests require real agents and exercise the full flow.
|
|
* These tests are meant to be run manually or in dedicated CI jobs.
|
|
*
|
|
* Run with: npm run test:integration
|
|
*/
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/__tests__/integration/**/*.integration.test.ts'],
|
|
testTimeout: 180000, // 3 minutes per test
|
|
hookTimeout: 60000, // 1 minute for setup/teardown
|
|
pool: 'forks', // Use forks instead of threads for process isolation
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: true, // Run tests sequentially to avoid agent conflicts
|
|
},
|
|
},
|
|
bail: 1, // Stop on first failure
|
|
globals: true,
|
|
reporters: ['verbose'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
});
|