mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 00:21:21 +00:00
- 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
32 lines
737 B
TypeScript
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'),
|
|
},
|
|
},
|
|
});
|