Skip to content

test: spec the ttl-cache, users.mapper, and github-webhook-payload utils - #658

Closed
yggdrasilworld wants to merge 3 commits into
MergeFi:mainfrom
yggdrasilworld:test/utility-specs
Closed

yggdrasilworld wants to merge 3 commits into
MergeFi:mainfrom
yggdrasilworld:test/utility-specs

Conversation

@yggdrasilworld

@yggdrasilworld yggdrasilworld commented Oct 14, 2026 •

Copy link
Copy Markdown

What

Test-coverage for three utility units with no spec (issues #598, #599, #595):

Verified: github-webhook-payload.util.spec.ts — 6/6 green (the 'valid' fixture gained the issue.id + issue.html_url the validator requires).

Resolves #598, #599, #595

Payment: Base USDC 0xD40Df5c27cEa7dd78A3c345401995c319589334e

- ttl-cache: TTL expiry, single-flight coalescing, invalidate
- users.mapper: the public-shape mapping — strips email + githubAccount (the
  MergeFi#359 leak the mapper exists to prevent)
- github-webhook-payload: the PR/issues payload validators — valid accept,
  malformed/missing/wrong-typed reject

Resolves MergeFi#598, MergeFi#599, MergeFi#595
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

The fixture was missing issue.id + issue.html_url, both required by the
validator (and present in real GitHub issues events).
The shared base carried half-written merge artifacts: an orphaned
invokeOnLockedEscrow block in escrow.service.ts, duplicated returns plus
a dead parsePagination in sponsors.controller.ts, and missing
describe/it closers in github-webhooks.service.spec.ts. Aligned each
with the intended form so the branch typechecks and its specs load.
@yggdrasilworld
yggdrasilworld deleted the test/utility-specs branch October 19, 2026 02:33
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.

users/users.mapper.ts has no spec file

1 participant