The Vanishing Last Item
Each full products page is missing its final item even though page boundaries otherwise look correct.
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- starts the first page with the first product
- returns every item requested for a full page
- starts the second page at the correct offset