diff --git a/tests/integration/snapshotRoutes.test.js b/tests/integration/snapshotRoutes.test.js index 45864fc..1502def 100644 --- a/tests/integration/snapshotRoutes.test.js +++ b/tests/integration/snapshotRoutes.test.js @@ -38,7 +38,10 @@ describe('POST /api/internal/snapshot/:sport', () => { .set('x-internal-key', 'test-key-123') .send({}); expect(res.status).toBe(200); - expect(snapshot.runSnapshot).toHaveBeenCalledWith('mlb'); + // Opts object added 2026-08-01 for the ?limit= bisect hook. With no + // ?limit the opts must be EMPTY — a stray limit here would silently cap + // production runs, which is the exact bug the hook exists to diagnose. + expect(snapshot.runSnapshot).toHaveBeenCalledWith('mlb', {}); expect(res.body.summary.gradeCount).toBe(3); });