Skip to content

test: cover leaderboard cache edge cases (#1278)#1332

Open
mittalsonal wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
mittalsonal:test-leaderboard-cache-edge-cases-1278
Open

test: cover leaderboard cache edge cases (#1278)#1332
mittalsonal wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
mittalsonal:test-leaderboard-cache-edge-cases-1278

Conversation

@mittalsonal
Copy link
Copy Markdown

Summary

  • add exact-boundary expiry coverage for �pruneExpiredLeaderboardCache�
  • cover null-entry, far-future expiry, and primitive-payload preservation cases
  • keep the change scoped to �test/leaderboard-cache.test.mjs� only

Testing

  • �node --test test/leaderboard-cache.test.mjs�
  • �git diff --check�

Closes #1278

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@mittalsonal is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:testing GSSoC type bonus: tests (+10 pts) labels May 27, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@mittalsonal
Copy link
Copy Markdown
Author

Maintainer label request: if this looks good, please add the GSSoC labels including gssoc:approved and the appropriate difficulty/type labels so it counts correctly on the platform. Thanks!

@mittalsonal
Copy link
Copy Markdown
Author

Verification note:

  • node --test test/leaderboard-cache.test.mjs
  • git diff --check

I kept this PR intentionally test-only and limited to leaderboard cache edge-case coverage so it stays easy to review and merge.

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

Labels

gssoc26 GSSoC 2026 contribution type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test : add edge case tests for leaderboard-cache pruneExpiredLeaderboardCache

1 participant