working companion prototype

This commit is contained in:
2025-11-24 23:32:36 +01:00
parent e7978024d7
commit e2bea9a126
175 changed files with 23227 additions and 3519 deletions

View File

@@ -2,18 +2,22 @@ import { defineConfig } from 'vitest/config';
/**
* E2E Test Configuration
*
* IMPORTANT: E2E tests run in HEADLESS mode only.
* This configuration is specifically for browser-based E2E tests.
*
* IMPORTANT: E2E tests run against real OS automation.
* This configuration includes strict timeouts to prevent hanging.
*/
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/e2e/**/*.e2e.test.ts'],
// E2E tests need longer timeouts due to browser operations
testTimeout: 120000,
hookTimeout: 60000,
// E2E tests use real automation - set strict timeouts to prevent hanging
// Individual tests: 30 seconds max
testTimeout: 30000,
// Hooks (beforeAll, afterAll, etc.): 30 seconds max
hookTimeout: 30000,
// Overall suite timeout: 2 minutes max to catch any hanging tests
teardownTimeout: 5000,
// Run tests sequentially to avoid port conflicts
pool: 'forks',
poolOptions: {
@@ -21,5 +25,7 @@ export default defineConfig({
singleFork: true,
},
},
// Force exit after tests complete to prevent hanging from async operations
forceRerunTriggers: [],
},
});