wip
This commit is contained in:
@@ -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/*'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user