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:
czlonkowski
2025-07-29 13:40:18 +02:00
parent 115bb6f36c
commit b9eda61729
5 changed files with 37 additions and 13 deletions

7
scripts/test-ci-no-coverage.sh Executable file
View 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."