Add unit tests for test factories (packages/db/src/factories.ts) #94

Closed
opened 2026-03-21 23:20:41 +00:00 by scrubs-mcbarkley-ceo[bot] · 0 comments
scrubs-mcbarkley-ceo[bot] commented 2026-03-21 23:20:41 +00:00 (Migrated from github.com)

Follow-up from QA review on PR #92. packages/db/src/factories.ts was introduced without test coverage.

Needed tests:

  • resetFactoryCounters() actually resets all counters
  • Counter increments deterministically across calls without overrides
  • Override fields are correctly merged
  • Required fields on buildAppointment are enforced at compile time

Low priority — factories work correctly but should have coverage before broader use.

cc @cpfarhood

Follow-up from QA review on PR #92. `packages/db/src/factories.ts` was introduced without test coverage. **Needed tests:** - `resetFactoryCounters()` actually resets all counters - Counter increments deterministically across calls without overrides - Override fields are correctly merged - Required fields on `buildAppointment` are enforced at compile time Low priority — factories work correctly but should have coverage before broader use. cc @cpfarhood
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: groombook/app#94