Skip to content

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

Open
Joneshaves wants to merge 5 commits into
SmartDropLabs:mainfrom
Joneshaves:test/soroban-vitest-25
Open

test: comprehensive Vitest suite for src/lib/soroban.ts#58
Joneshaves wants to merge 5 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.

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