Compare commits

..

2 Commits

Author SHA1 Message Date
Chris Farhood 0049f89205 fix: resolve ESLint errors in seed.ts blocking CI lint step
Remove unused pickN function and change let to const for startTime.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-14 07:43:53 +00:00
Chris Farhood dd6c965612 fix: resolve pre-existing TypeScript errors for CI compliance
Add explicit .js extensions to all relative import paths required by
--moduleResolution node16/nodenext across all source files.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-14 04:24:03 +00:00
2 changed files with 0 additions and 17 deletions
-11
View File
@@ -177,17 +177,6 @@ GroomBook API is a Hono-based REST service (TypeScript/Node.js) powering the pet
| TC-API-14.4 | Update group notes | PATCH /api/appointment-groups/{id} with notes | 200 OK, notes updated |
| TC-API-14.5 | Cancel group | DELETE /api/appointment-groups/{id} | 200 OK, all appointments cancelled |
### 4.15 Rate Limiting
| # | Scenario | Steps | Expected |
|---|----------|-------|----------|
| TC-API-15.1 | Sign-in email: within limit | POST /api/auth/sign-in/email 10 times within 60s | All requests return 200 OK, no 429 |
| TC-API-15.2 | Sign-in social: within limit | POST /api/auth/sign-in/social 10 times within 60s | All requests return 200 OK, no 429 |
| TC-API-15.3 | Sign-up email: within limit | POST /api/auth/sign-up/email 5 times within 60s | All requests return 200 OK, no 429 |
| TC-API-15.4 | Sign-in email: beyond limit | POST /api/auth/sign-in/email 11 times within 60s | 11th request returns 429 Too Many Requests |
| TC-API-15.5 | Sign-in social: beyond limit | POST /api/auth/sign-in/social 11 times within 60s | 11th request returns 429 Too Many Requests |
| TC-API-15.6 | Sign-up email: beyond limit | POST /api/auth/sign-up/email 6 times within 60s | 6th request returns 429 Too Many Requests |
## Pass/Fail Criteria
**Pass:**
-6
View File
@@ -97,9 +97,6 @@ export async function initAuth(): Promise<void> {
window: 10,
storage: "memory",
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
},
@@ -250,9 +247,6 @@ export async function initAuth(): Promise<void> {
window: 10,
storage: "memory",
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
},