/claim #71
Adds focused Vitest coverage for SQL dump import behavior in src/import/dump.ts.
Covered behavior:
SQLite format 3 header before execution207 with accurate details for mixed success/failure execution500 when multipart parsing failssqlFile form valuesconsole.error spy to avoid mock leakageThis is test-only and intentionally avoids the active CSV, JSON, RLS, cache, operation, worker, handler, allowlist, Durable Object, and plugin coverage PR areas.
corepack pnpm exec vitest run src/import/dump.test.ts - 13 passedcorepack pnpm exec vitest run src/import/dump.test.ts --coverage.enabled true --coverage.include src/import/dump.ts --coverage.reporter text --coverage.thresholds.lines=0 --coverage.thresholds.branches=0 --coverage.thresholds.functions=0 --coverage.thresholds.statements=0 - src/import/dump.ts at 100% statements, 96.15% branches, 100% functions, 100% linescorepack pnpm exec prettier --check src/import/dump.test.ts - passedgit diff --check -- src/import/dump.test.ts - passed with CRLF warning onlycorepack pnpm exec vitest run - dump tests pass; existing unrelated RLS failures remain in src/rls/index.test.tskaziiza
@kaziiza
Outerbase (YC W23)
@outerbase