Skip to main content

Current test coverage

The suite has grown well beyond chemistry calculations as more modules shipped. As of this writing it’s 34 test files / 307 tests, covering (non-exhaustively):
  • chemical status evaluation, LSI calculation, and Illinois water quality thresholds
  • the form builder domain layer: conditional operators, formula parsing/evaluation, rule evaluation, schema normalization, form-level fields
  • form rendering and validation (form-renderer, form-validation)
  • CSV export/import shaping
  • permission and admin-only action guards
  • location-address and server filter-defaults helpers
Tests are co-located in __tests__/ directories next to the code under test — src/lib/services/__tests__/, src/lib/actions/__tests__/, src/lib/__tests__/, src/components/chemical/__tests__/, and a couple of route-local __tests__/ directories — not a separate top-level test tree.

Commands

Run the test suite once:
Run ESLint:
For watch mode:

Edge-case coverage

Use the full QA matrix here: It covers:
  • implemented modules that need regression coverage now
  • planned roadmap items that need acceptance coverage before shipping
  • cross-cutting risks around tenancy, permissions, uploads, dates, exports, and responsive UI

Current operational posture

Implemented:
  • chemistry records with evaluation, detail pages, trends, and CSV import
  • maintenance logs
  • compliance incidents, evidence, corrective actions, timeline, and facility status
  • alerts plus export history and IDPH PDF reporting
Not yet production-hardened:
  • public production deployment operations
  • background job infrastructure beyond current export posture
  • full browser-based end-to-end coverage across restricted-access roles