-
Notifications
You must be signed in to change notification settings - Fork 0
⭐ Testing Strategy
Vitest across every module — no Jest anywhere in the repo. 5,389 tests passing, 519 files, 0 lint errors across all 13 modules as of the last full count. A live HTML test report redeploys to GitHub Pages on every push to main, plus an at-a-glance summary for just the pass/fail/slow breakdown — both built from this repo's own validated color/accessibility system, not a third-party widget.
A real perf fix, not a config tweak. The live report once flagged ~100 "slow" tests. The cheap fix — raising Vitest's slowTestThreshold — was implemented wrong twice (wrong config scope, no effect), and once genuinely applied, barely moved the number. That non-result was treated as a signal to keep digging, not a stopping point: the real cause was createWorkspace() (a helper running four full @schematics/angular generators) re-running in beforeEach instead of beforeAll across 9 spec files, paying full generator cost before every single test. Fixed at the source: 18x (schematics: 52.8s → 2.9s) and 4.5x (migrations: 51.5s → 11.4s) real reductions, with the remaining slow tests documented as the actual floor rather than chased further.
Locally: yarn build && yarn test:report && yarn test:summary, then yarn test:report:view to serve both.