Skip to content

test: classifier tests and CI workflow - #5

Merged
davedumto merged 1 commit into
mainfrom
feat/tests-and-ci
Sep 7, 2026
Merged

davedumto merged 1 commit into
mainfrom
feat/tests-and-ci

Conversation

@davedumto

Copy link
Copy Markdown
Member

What this adds

15 Vitest tests for src/classify.ts — the only
code where silent failures have real consequences.
A wrong classifier produces false negatives with
no error, no log, no signal.

Coverage

  • Exact scheme: 7 tests (plain-tx sponsor,
    fee-bump sponsor, self-sponsored rejection,
    wrong contract, wrong function, wrong args,
    failed status)
  • Upto scheme: 4 tests (valid, missing event
    silent-close, wrong contract, wrong args)
  • Edge cases: 4 tests (empty ops, non-invocation,
    multi-op, explicit fee-bump regression)

Regression guard

Test 1 and test 15 are explicit guards for the
original fee-bump-only bug — the v1 heuristic
that would have silently missed every
plain-tx-sponsored settlement including Vellar's
own primary pattern.

CI

.github/workflows/ci.yml runs typecheck + test +
build on every push and PR to main.

15 Vitest tests for src/classify.ts covering:
- Exact scheme: plain-tx sponsorship (regression
  test for original fee-bump-only bug), fee-bump
  path, self-sponsored non-settlement, wrong
  contract, wrong function, wrong arg count,
  failed status
- Upto scheme: valid settlement, silent-close on
  missing event, wrong contract, wrong arg count
- Edge cases: empty ops, non-invocation op,
  multi-op iteration, explicit fee-bump regression

The fee-bump-only bug (v1 heuristic, caught during
validation before shipping) would have silently
missed all plain-tx-sponsored settlements including
Vellar's own primary pattern. Test 1 and test 15
are explicit regression guards for that class of
failure.

.github/workflows/ci.yml: typecheck + test + build
on push/PR to main. No live network calls in CI.
@vercel

vercel Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
vellar-explorer Ready Ready Preview Sep 7, 2026 10:13pm UTC

@davedumto
davedumto merged commit 98a7087 into main Sep 7, 2026
3 checks passed
@davedumto
davedumto deleted the feat/tests-and-ci branch September 7, 2026 22:57

This branch was successfully deployed

1 active deployment
Preview — 2ab86be2 Deployed Sep 7, 2026 by vercel[bot]
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.

1 participant