Skip to content

test: add CSV import route coverage#152

Open
bigtechtheory wants to merge 1 commit into
outerbase:mainfrom
bigtechtheory:bounty-csv-import-tests
Open

test: add CSV import route coverage#152
bigtechtheory wants to merge 1 commit into
outerbase:mainfrom
bigtechtheory:bounty-csv-import-tests

Conversation

@bigtechtheory
Copy link
Copy Markdown

Summary

Adds Vitest coverage for CSV import route behavior:

  • raw text/csv imports
  • JSON-wrapped CSV with column mappings
  • multipart CSV upload
  • partial insert failures
  • unsupported content types
  • missing multipart files
  • CSV with headers but no data rows

Contributes to #71.

Verification

  • vitest run src/import/csv.test.ts
  • prettier --check src/import/csv.test.ts

Note: local verification in the Google Drive-backed checkout hit a macOS/Rollup native module loading issue, so I verified the same patch in a temporary local checkout with Rollup's WASM build workaround.

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