You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix broken CI test suite and close major test coverage gaps (#3)
- Fix 7 test files importing from 'bun:test' instead of 'vitest',
which made npx vitest run (what CI actually runs) fail to load
them entirely — CI was passing on a fraction of the suite.
- Rewrite the 4 live-server integration suites (auth, resources,
questions/interview/AI, user-paths) to authenticate via the real
JWT session cookie flow; they still used the x-user-id header
shortcut that was removed as a security fix, so they were
exercising an auth path that no longer exists.
- Wire those integration suites into CI: spin up a Postgres service,
push + seed the schema, build, start the app, and run them against
the live server instead of skipping unconditionally under CI=true.
- Make login/register/general API rate limits configurable via env
vars (defaults unchanged) so the integration suite's request volume
doesn't trip production-tuned limits.
- Add real render tests (MockInterview, ResumeLab, OnboardingQuiz),
direct unit tests (session, rate-limit, sanitize), and route tests
(subscription webhook/manage, verify-email, questions/count) that
import the actual implementation instead of reimplementing it.
- Add @vitest/coverage-v8 and a test:coverage script.
Claude-Session: https://claude.ai/code/session_01CyerEYcFhnBf8oaqqSSCSg
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments