Skip to content

fix: resolve failing tests and type errors - #309

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier2-908-1794672888
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier2-908-1794672888

Conversation

@stooit

@stooit stooit commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Fixes: auth middleware lowercase "post" → "POST" (required by auth.test.ts; matches policy), User.userName → username in shared types, missing badRequest import in routes/users.ts, implemented shared paginate, tsconfig types: [bun-types] (already installed).

Result: bun test 22/22 pass; tsc --noEmit clean. No test files modified, no deps added.

Assumptions/follow-ups (non-blocking, from review): unauthenticated POST is intended per tests/policy — consider per-route auth + rate limiting; pre-existing API_TOKEN fallback to "test-token" and non-constant-time compare; paginate doesn't validate page<1/size<=0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant