Volleyball Elite Academy development update
|
Volleyball Elite Academy
Verify the rental capacity check with a real database to catch query-level bugs
|
Verify the rental capacity check with a real database to catch query-level bugsVolleyball Elite Academy — Development Update • May 10, 2026
--- title: Verify the rental capacity check with a real database to catch query-level bugs ---
Verify the rental capacity check with a real database to catch query-level bugs
## What & Why The capacity math is now centralized in , but the route tests mock . A bug in the underlying query (e.g. returning extra rows, filtering on the wrong column) would pass mocked tests but break in production. A real-database integration test would catch that gap.
This task is listed in the project as "Catch broken rental-lookup database queries with a real-database test" — this follow-up makes the connection explicit now that the helper is the canonical path.
## Done looks like - A Vitest test that spins up a real (test) Postgres instance - Inserts gym rentals and event dates directly via drizzle - Calls and asserts the returned rows match expectations - Exercises the same-event exclusion path through the real storage layer
## Relevant files - (computeRentalCapacityCheck) - (getEventDatesByGymRentalId) - -
|
Volleyball Elite Academy Reply to this email — we read every reply. You received this because you have an account with Volleyball Elite Academy. elitevolleyball.training |
|
No comments:
Post a Comment