perf: parallelize tests and reduce timeouts
- Increase workers from 1 to 10 in CI for parallel execution - Reduce expect timeout from 5000ms to 2000ms - Reduce all waitForTimeout calls >1000ms to 200-500ms - Remove unnecessary waits in global setup
This commit is contained in:
@@ -4,16 +4,12 @@ export default defineConfig({
|
||||
testDir: './e2e',
|
||||
timeout: 30000,
|
||||
expect: {
|
||||
timeout: 5000
|
||||
timeout: 2000
|
||||
},
|
||||
// Run tests sequentially to avoid database conflicts
|
||||
fullyParallel: false,
|
||||
// Fail the build on CI if you accidentally left test.only in the source code.
|
||||
forbidOnly: !!process.env.CI,
|
||||
// Retry on CI only.
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
// Use 1 worker in CI to avoid database conflicts between parallel projects
|
||||
workers: 1,
|
||||
// Run tests in parallel for speed - database isolation is per-test via unique data
|
||||
fullyParallel: true,
|
||||
// Use multiple workers in CI to speed up test execution
|
||||
workers: process.env.CI ? 10 : 1,
|
||||
// Reporter to use
|
||||
reporter: 'html',
|
||||
// Global setup and teardown
|
||||
|
||||
Reference in New Issue
Block a user