Skip to content

fix: resolve failing tests and type errors - #301

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier2-924-1794568513
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier2-924-1794568513

Conversation

@stooit

@stooit stooit commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Fixes: implement paginate; rename User.userName → username; import missing badRequest in users route; fix auth public-method case (post→POST, per documented policy/tests); add bun-types (already installed) to tsconfig types.

Verified: bun test 22/22 pass, tsc --noEmit clean. No test files or deps changed.

Notes/assumptions: tests are source of truth. Public POST matches documented policy but allows unauthenticated writes to /users and /posts (arbitrary authorId), which needs a separate security decision. Pre-existing and left unchanged: test-token fallback when API_TOKEN is unset, and paginate does not clamp page<=0 or 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