Files
Maestro/vitest.e2e.config.ts
Raza Rauf b37b8fb91b refactor: restructure web-server module with security and memory leak fixes
- Move WebServer class to dedicated file and add module index
- Extract shared types to centralized types.ts
- Fix XSS vulnerability by sanitizing sessionId/tabId in URL parameters
- Fix IPC listener memory leak with proper cleanup on timeout
- Add autoRunStates cleanup when sessions go offline
- Refactor message handlers with send() and sendError() helpers
- Add XSS sanitization tests and e2e test configuration
2026-01-29 01:19:56 +05:00

32 lines
737 B
TypeScript

/**
* @file vitest.e2e.config.ts
* @description Vitest configuration for e2e tests.
*
* E2E tests use real WebSocket connections and actual server instances.
* These tests are meant to be run manually or in dedicated CI jobs.
*
* Run with: npx vitest run --config vitest.e2e.config.ts
*/
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
include: ['src/__tests__/e2e/**/*.test.ts'],
environment: 'node',
testTimeout: 30000,
hookTimeout: 10000,
globals: true,
reporters: ['verbose'],
sequence: {
shuffle: false, // Run tests in order
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});