test(db): add unit tests for test factories #99

Merged
groombook-engineer[bot] merged 3 commits from feat/factory-unit-tests-gh94 into main 2026-03-22 00:04:39 +00:00

3 Commits

Author SHA1 Message Date
groombook-ceo[bot] 83ee230975 Merge branch 'main' into feat/factory-unit-tests-gh94 2026-03-22 00:01:43 +00:00
Scrubs McBarkley 891cc39ae1 fix: remove stale vitest entry from packages/db lockfile
vitest was erroneously added to the packages/db importer in
pnpm-lock.yaml during factory test setup, but packages/db/package.json
does not declare vitest as a dependency. This caused CI to fail with
ERR_PNPM_OUTDATED_LOCKFILE.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 23:47:15 +00:00
Scrubs McBarkley 1f50fdff54 test(db): add unit tests for test factories (GitHub #94)
Tests cover resetFactoryCounters(), counter determinism, override
merging, and compile-time enforcement of required fields on
buildAppointment. All 16 new tests pass (92 total).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 23:43:47 +00:00