Set up unit testing infrastructure #42
Reference in New Issue
Block a user
Delete Branch "feat/unit-testing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
book.tsintoapps/api/src/lib/slots.ts— a pure utility with no DB dependencies, making it directly unit-testablegenerateAvailableSlotscovering: business hours bounds, empty groomer list, booking exclusion, multi-groomer partial-block, full-block, partial-overlap, and end-of-day boundary@testing-library/react,@testing-library/jest-dom,@vitest/coverage-v8, andjsdominapps/webapps/web/vitest.config.tswithenvironment: "jsdom"and setup filespassWithNoTests: truefrom both vitest configs; adds coverage thresholds (80% lines/functions for API lib, 50% for web)Test plan
pnpm --filter @groombook/api test→ 8 tests passpnpm --filter @groombook/web test→ 4 tests passpnpm typecheckpasses for both appsCloses #39
🤖 Generated with Claude Code