Skip to content

test: add testing infrastructure and CI pipeline - #16

Merged
Shreyassp002 merged 3 commits into
HoomanBuilds:mainfrom
Shreyassp002:main
Apr 2, 2026
Merged

Shreyassp002 merged 3 commits into
HoomanBuilds:mainfrom
Shreyassp002:main

Conversation

@Shreyassp002

Copy link
Copy Markdown
Member

Summary

Adds Vitest testing infrastructure with 106 unit tests and a CI pipeline that runs lint, typecheck, and tests on every PR.

Changes

Testing Infrastructure

  • Vitest with @vitest/coverage-v8 and @/* path alias support
  • 7 test files covering all pure business logic:
    • token-filter — spam heuristics, allowlist bypasses, filter pipeline
    • webhooks — HMAC signing, secret generation, payload builder
    • api-response — success/error helpers, ApiError shortcuts
    • chain-registry — chain ID conversion, type normalization
    • payment-link — Zod schema validation (required fields, edge cases)
    • token-price — slippage buffer, amount calculation precision
    • quote-aggregator — chain ID aliases, tie-breaker scoring, ranking

CI Pipeline

  • Triggers on PR open/sync, runs in parallel with Flash Review
  • Steps: ESLint → TypeScript typecheck → Vitest

ESLint Config

  • Allow _ prefixed unused vars (standard destructuring convention)
  • Ignore scripts/ dir from Next.js-specific rules

@Shreyassp002 Shreyassp002 self-assigned this Apr 2, 2026
@Shreyassp002 Shreyassp002 added the enhancement New feature or request label Apr 2, 2026
@vercel

vercel Bot commented Apr 2, 2026

Copy link
Copy Markdown

@Shreyassp002 is attempting to deploy a commit to the Shreyas' projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Apr 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flash-protocol Ready Ready Preview, Comment Apr 2, 2026 9:09pm

@Shreyassp002
Shreyassp002 merged commit e34c1f4 into HoomanBuilds:main Apr 2, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant