Add vitest specs for user-cards quantity validation, scan upload-image auth/rate-limit/MIME gates, ScannerDestinationPicker, and ScannedCardItem. Suite grows 21 → 37 tests. Co-authored-by: Cursor <cursoragent@cursor.com>
896 B
896 B
| name | classification | success_metric | depends_on | status | created | |
|---|---|---|---|---|---|---|
| test-scanner-redesign-surfaces | test | Vitest covers scanner redesign API validation and key component behaviors (destination picker, scanned card row, upload-image auth/rate-limit/MIME). |
|
open | 2026-05-27 |
Convoy: test-scanner-redesign-surfaces
P2 follow-up from audit-redesign-scanner-flow-44 reviewer report.
Scope
test/api/user-cards.test.js— quantity validationtest/api/scan/upload-image.test.js— auth, rate limit, MIME rejectiontest/components/ScannerDestinationPicker.test.js— game filter + destination toggletest/components/ScannedCardItem.test.js— ownership badge + metadata controls
Acceptance criteria
npm run test:rungreen with new tests exercising real behavior (not implementation trivia).- No live DB or Blob calls in tests.