feat(logging): add professional logging with pino and headless E2E tests - Add ILogger port interface in application layer - Implement PinoLogAdapter with Electron-compatible structured logging - Add NoOpLogAdapter for testing - Wire logging into DI container and all adapters - Create 32 E2E tests for automation workflow (headless-only) - Add vitest.e2e.config.ts for E2E test configuration - All tests enforce HEADLESS mode (no headed browser allowed)
This commit is contained in:
25
vitest.e2e.config.ts
Normal file
25
vitest.e2e.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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.
|
||||
*/
|
||||
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,
|
||||
// Run tests sequentially to avoid port conflicts
|
||||
pool: 'forks',
|
||||
poolOptions: {
|
||||
forks: {
|
||||
singleFork: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user