Scrum4Me/__tests__/api
Madhura68 e89fb7149f feat(PBI-79/ST-1335): sprint-membership-summary + cross-sprint-blocks endpoints
Twee nieuwe GET-route handlers, beide verplicht gescoped op pbiIds (geen
product-brede aanroepen).

- app/api/products/[id]/sprint-membership-summary/route.ts
  Response: { [pbiId]: { total, inSprint } } via twee prisma.groupBy calls
  (totaal + binnen actieve sprint). Voor state-B tri-state.

- app/api/products/[id]/cross-sprint-blocks/route.ts
  Response: { [storyId]: { sprintId, sprintName } } voor stories in andere
  OPEN sprints. UX-hint voor disabled-vinkjes; commit-acties blijven
  autoritatief.

Tests: 13 cases dekken happy path, 400 zonder pbiIds, 400 zonder sprintId,
404 zonder product-access, auth-fail, en NOT-clause voor excludeSprintId.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 13:48:47 +02:00
..
cron-cleanup-agent-artifacts.test.ts test(T-574): cron-cleanup test verwacht SKIPPED in deleteMany filter 2026-05-05 23:12:11 +02:00
cron-expire-questions.test.ts M11: Claude vraagt, gebruiker antwoordt (ST-1101..ST-1108) (#13) 2026-04-29 11:38:23 +02:00
cross-sprint-blocks.test.ts feat(PBI-79/ST-1335): sprint-membership-summary + cross-sprint-blocks endpoints 2026-05-11 13:48:47 +02:00
ideas.test.ts api: REST endpoints for ideas (M12 T-500) 2026-05-04 19:55:49 +02:00
next-story.test.ts feat(PBI-63): meerdere sprints per product + EXCLUDED + sprint-switcher (#161) 2026-05-08 00:15:04 +02:00
notifications-stream.test.ts realtime: route idea-jobs + idea-questions to /notifications channel (M12 T-502) 2026-05-04 20:00:05 +02:00
pair-claim.test.ts M12 / ST-1110: Demo gebruiker read-only (#17) 2026-04-29 18:44:14 +02:00
pair-start.test.ts M12 / ST-1110: Demo gebruiker read-only (#17) 2026-04-29 18:44:14 +02:00
pair-stream.test.ts M10: Password-loze inlog via QR-pairing (ST-1001..ST-1008) (#12) 2026-04-28 00:01:04 +02:00
products.test.ts test(products): add unit tests for GET /api/products 2026-04-25 18:31:35 +02:00
push-send.test.ts Sprint: pbi-55 (#156) 2026-05-07 21:46:01 +02:00
reorder.test.ts Todo description, entity codes, REST API extensions and Claude Code hardening (ST-509/511/512/513) (#2) 2026-04-26 23:40:54 +02:00
security.test.ts feat(PBI-63): meerdere sprints per product + EXCLUDED + sprint-switcher (#161) 2026-05-08 00:15:04 +02:00
sprint-membership-summary.test.ts feat(PBI-79/ST-1335): sprint-membership-summary + cross-sprint-blocks endpoints 2026-05-11 13:48:47 +02:00
sprint-tasks.test.ts feat(PBI-63): meerdere sprints per product + EXCLUDED + sprint-switcher (#161) 2026-05-08 00:15:04 +02:00
story-log.test.ts feat(PBI-33): chat-kanaal UI + lint cleanup (#145) 2026-05-07 16:04:53 +02:00
tasks.test.ts PBI-46: Sprint-niveau jobflow met cascade-FAIL (F1/F2/F4 Scrum4Me) (#136) 2026-05-06 16:43:57 +02:00