Skip to content

test: comprehensive Vitest suite for src/lib/soroban.ts - #58

Merged
prodbycorne merged 6 commits into
SmartDropLabs:mainfrom
Joneshaves:test/soroban-vitest-25
Jul 26, 2026
Merged

test: comprehensive Vitest suite for src/lib/soroban.ts#58
prodbycorne merged 6 commits into
SmartDropLabs:mainfrom
Joneshaves:test/soroban-vitest-25

Conversation

@Joneshaves

@Joneshaves Joneshaves commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a Vitest suite for src/lib/soroban.ts (contract-interaction core), filling gaps the existing soroban tests didn't cover. New file: src/lib/soroban.service.test.ts.

Heads-up for review: the failing E2E check is pre-existing and unrelated.
The workflow runs pnpm playwright install …, but the playwright npm script already includes test --config …, so the args get mangled before any spec runs. Separately, current main has a syntax error in src/app/farm/page.tsx (Expected } but found EOF) that breaks farm/page.test.tsx - also not from this PR.

This PR is test-only: 80/80 vitest passing, 84.48% line coverage on soroban.ts, soroban.ts/soroban-parsers.ts untouched. Happy to open a separate PR for the e2e script fix if useful.

@Joneshaves
Joneshaves force-pushed the test/soroban-vitest-25 branch from 3e95e0f to 9f5f7d5 Compare June 27, 2026 01:19
@prodbycorne

Copy link
Copy Markdown
Contributor

CI failed

@Joneshaves
Joneshaves force-pushed the test/soroban-vitest-25 branch from 9f5f7d5 to 6dd1ea4 Compare June 29, 2026 12:41
@Joneshaves

Copy link
Copy Markdown
Contributor Author

Fixed the TypeScript issue in src/lib/soroban.service.test.ts.

Validation:

  • pnpm vitest run src/lib/soroban.service.test.ts passes: 55 tests.
  • Focused coverage for src/lib/soroban.ts remains above the target at 80.06% line coverage.
  • npm run build passes.

@netlify

netlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Deploy Preview for spiffy-melomakarona-eb1e8a failed.

Name Link
🔨 Latest commit dd07872
🔍 Latest deploy log https://app.netlify.com/projects/spiffy-melomakarona-eb1e8a/deploys/6a6604151baa7400088dbd1c

@netlify

netlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Deploy Preview for smart-drop failed.

Name Link
🔨 Latest commit dd07872
🔍 Latest deploy log https://app.netlify.com/projects/smart-drop/deploys/6a660415bef9c8000813d129

@prodbycorne
prodbycorne merged commit 10a924a into SmartDropLabs:main Jul 26, 2026
0 of 9 checks passed
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.

2 participants