OU
test: add CSV import route coverage
outerbase/starbasedb#155

Summary

  • Improves the test coverage requested in #71.
  • Adds focused Vitest coverage for the CSV import route without changing runtime behavior.

Changes

  • Cover empty request bodies and unsupported content types.
  • Cover raw text/csv imports and JSON-wrapped CSV imports with column mapping.
  • Cover multipart uploads with no file.
  • Cover partial insert failures while preserving successful rows.

Testing

  • bun x vitest run src/import/csv.test.ts
  • Result: passed, 6 passed / 0 failed
  • bun x prettier --check src/import/csv.test.ts
  • Result: passed
  • git diff --check
  • Result: passed
  • bun x vitest run
  • Result: partial, new CSV tests passed; existing src/rls/index.test.ts has 4 unrelated failures on current main in this local environment.
  • bun x tsc --noEmit
  • Result: failed on pre-existing project type errors outside this change, including Cloudflare/WebSocket test types and existing cache test mocks.

Notes

  • No authentication, payment, database, deployment, or security-sensitive configuration changes were made.
  • No secrets, credentials, production data, or security-sensitive information were accessed.

Algora

/claim #71

Claim

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

Contributors

GI

Gimyoonsoo

@Gimyoonsoo

100%

Sponsors

OU

Outerbase (YC W23)

@outerbase

$250