v1.0.9-beta.068 - chore(tests): stabilize test environment and implement health check suites
Resolved critical environment issues and implemented comprehensive testing for system diagnostics to ensure long-term stability and reliability.
🔧 Technical Debt & Testing
- JSDOM Stability: Fixed environment-related timeouts in CSV import tests by stubbing global timers and bypassing internal request streaming hangs.
- Prisma Proxy Mocking: Implemented a dynamic Proxy for the Prisma mock to handle arbitrary model counts and queries in the Health Checker without manual definition.
- System Health Diagnostics: Added a complete test suite for runSystemHealthCheck covering disk space thresholds, read-only library permissions, and dependency availability.
- Dependency Sync: Resolved TypeScript no exported member errors for @testing-library/react and configured @vitejs/plugin-react for component testing.
- Mock Alignment: Synchronized the Prisma mock with actual business logic to prevent undefined model errors during secondary health checks (counts and library iterations).