OU
test: expand operation coverage
outerbase/starbasedb#153

/claim #71

Summary

  • Expand src/operation.test.ts with focused coverage for execution paths that were still mostly uncovered.
  • Cover raw result transformation through registry hooks, internal empty-result handling, Hyperdrive success/error handling, External API SDK fallback, and every supported SDK connection branch.
  • Keep this test-only and non-overlapping with the active CSV import, RLS, cache, and allowlist coverage PRs.

Validation

  • .\node_modules\.bin\prettier.cmd --check src/operation.test.ts - passed
  • .\node_modules\.bin\vitest.cmd run src/operation.test.ts --coverage.enabled true --coverage.include src/operation.ts --coverage.reporter text - passed; src/operation.ts reports 94.21% statements, 89.47% branches, 100% functions, 94.06% lines
  • .\node_modules\.bin\vitest.cmd run - operation tests pass; current main still has the existing 4 failing src/rls/index.test.ts expectations that are unrelated to this operation-only change
  • git diff --check - passed

Demo video

Claim

Total prize pool $250
Total paid $0
Status Pending
Submitted May 12, 2026
Last updated May 12, 2026

Contributors

II

Iineman2

@Iineman2

100%

Sponsors

OU

Outerbase (YC W23)

@outerbase

$250