fix: resolve test hanging issue in CI
- Reduce CI reporters to prevent resource contention (removed json/html) - Optimize coverage settings with all:false and skipFull:true - Fix MSW waitForRequest memory leak by adding timeout and cleanup - Add teardownTimeout to vitest config - Add 10-minute timeout to GitHub Actions job - Create emergency test script without coverage for debugging The main issues were: 1. Coverage collection with multiple reporters causing exhaustion 2. MSW event listener that could hang indefinitely 3. Too many simultaneous reporters (4 at once) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
7
scripts/test-ci-no-coverage.sh
Executable file
7
scripts/test-ci-no-coverage.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Emergency script to run tests without coverage in CI if hanging persists
|
||||
|
||||
echo "Running tests without coverage to diagnose hanging issue..."
|
||||
FEATURE_TEST_COVERAGE=false vitest run --reporter=default --reporter=junit
|
||||
|
||||
echo "Tests completed. If this works but regular test:ci hangs, the issue is coverage-related."
|
||||
Reference in New Issue
Block a user