This commit is contained in:
2025-12-11 21:06:25 +01:00
parent c49ea2598d
commit ec3ddc3a5c
227 changed files with 3496 additions and 2083 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from 'vitest/config';
import path from 'path';
/**
* E2E Test Configuration
@@ -11,7 +12,6 @@ export default defineConfig({
globals: true,
environment: 'node',
include: ['tests/e2e/**/*.e2e.test.ts'],
exclude: ['tests/e2e/companion/companion-ui-full-workflow.e2e.test.ts'],
// E2E tests use real automation - set strict timeouts to prevent hanging
// Individual tests: 30 seconds max
testTimeout: 30000,
@@ -29,4 +29,18 @@ export default defineConfig({
// Force exit after tests complete to prevent hanging from async operations
forceRerunTriggers: [],
},
resolve: {
alias: {
// Mirror main Vitest config so E2E tests can resolve package paths
'@gridpilot/shared-result': path.resolve(__dirname, 'packages/shared/result/Result.ts'),
'@gridpilot/automation': path.resolve(__dirname, 'packages/automation'),
'@gridpilot/automation/*': path.resolve(__dirname, 'packages/automation/*'),
'@gridpilot/testing-support': path.resolve(__dirname, 'packages/testing-support'),
'@gridpilot/media': path.resolve(__dirname, 'packages/media'),
'@': path.resolve(__dirname, 'apps/website'),
'@/*': path.resolve(__dirname, 'apps/website/*'),
packages: path.resolve(__dirname, 'packages'),
'packages/*': path.resolve(__dirname, 'packages/*'),
},
},
});