test: add auth acceptance test script + verify .env gitignore - #5
test: add auth acceptance test script + verify .env gitignore#5isaJrKai wants to merge 1 commit into
Conversation
Adds scripts/test-auth-persistence.sh — a curl-based smoke test for the auth system. Tests: 1. Login → refresh → still logged in 2. Login → logout → refresh → remain logged out 3. Two browsers (cookie jars) — both logged in 4. Logout browser A → browser B still works Can run against local dev (default) or deployed URL via BASE_URL env var. Exit code 0 = pass, 1 = fail — suitable for CI gating. Also adds scripts/README.md with usage instructions. Also verifies .env is gitignored (it was already, but adds .env.local and .env.*.local patterns for completeness). Adds db/*.db patterns to prevent SQLite binaries from being committed.
|
Warning Review limit reached
More reviews will be available in 27 minutes and 4 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What this adds
1. Auth acceptance test script
scripts/test-auth-persistence.sh— a curl-based smoke test for the authentication and session management system. Tests:Usage:
Exit code 0 = pass, 1 = fail — can be used in CI to gate deploys.
2. .gitignore verification
.envis gitignored (it was already).env.localand.env.*.localpatterns (Next.js convention)db/*.dbanddb/*.db-*patterns (prevents SQLite binaries from being committed)3. scripts/README.md
Documents how to run the tests, locally and against deployed URLs.
Files changed
scripts/test-auth-persistence.sh(new) — 4 acceptance testsscripts/README.md(new) — usage docs.gitignore— added env + db patternsVercel env vars
None needed.
Deployment risk
Zero. This only adds test scripts and gitignore patterns. No application code changes.