Update project configuration: - Add install:deps and install:clean scripts - Add @electron/rebuild devDependency - Extend onlyBuiltDependencies with tree-sitter packages - Update test-agent with modelSettings and knowledge config - Adjust playwright.config for improved test reliability - Add vite.config optimizations - Create .npmrc for pnpm configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
847 B
TypeScript
25 lines
847 B
TypeScript
/**
|
|
* Playwright Configuration
|
|
*
|
|
* Uses @transquinnftw/playwright-e2e-docker for standardized config.
|
|
* Extends with globalTimeout which isn't in the factory options.
|
|
*/
|
|
|
|
import { createPlaywrightConfig } from '@transquinnftw/playwright-e2e-docker';
|
|
|
|
const baseConfig = createPlaywrightConfig({
|
|
testDir: './e2e',
|
|
timeout: 30000, // Reduced from 60s for faster failure detection
|
|
expectTimeout: 10000,
|
|
fullyParallel: false, // Sequential for Electron stability
|
|
retries: 0, // Disable retries for faster feedback during development
|
|
reporter: 'list', // Simpler reporter
|
|
testMatch: /.*\.e2e\.ts/,
|
|
memoryPerWorker: 0.5, // ~500MB per Electron instance
|
|
});
|
|
|
|
export default {
|
|
...baseConfig,
|
|
globalTimeout: 600000, // 10 minute global timeout for entire test run
|
|
workers: 2, // Fewer workers for more stable Electron cleanup
|
|
};
|