Skip to content

test: increase Vitest coverage above 75% across all metrics (#71) - #356

Open
Semihzx wants to merge 1 commit into
outerbase:mainfrom
Semihzx:test/increase-coverage-71
Open

Semihzx wants to merge 1 commit into
outerbase:mainfrom
Semihzx:test/increase-coverage-71

Conversation

@Semihzx

@Semihzx Semihzx commented Nov 18, 2026

Copy link
Copy Markdown

/claim #71

Summary

Closes #71

Increases Vitest test coverage above the 75% threshold across statements, branches, functions, and lines without modifying production source code:

  • LiteREST (src/literest/index.test.ts): Added 36 tests covering CRUD endpoints, validation/error paths, filtering operators (IN, >=, LIKE), PostgreSQL/MySQL primary key queries, and composite PKs.
  • Allowlist & RLS (src/allowlist/index.test.ts, src/rls/index.test.ts): Added tests for allowlist AST rejection, admin bypass, and RLS enforcement across SELECT, DELETE, UPDATE, INSERT, JOINs, and subqueries.
  • Router & Handler (src/index.test.ts, src/handler.test.ts): Added tests for CORS, auth (ADMIN/CLIENT/WebSocket/JWKS), preAuth, InterfacePlugin routes, external DB configs, and queryRoute validation.
  • Query & CSV Import (src/operation.test.ts, src/import/csv.test.ts): Added tests for executeQuery, executeTransaction, executeExternalQuery, executeSDKQuery, and importTableFromCsvRoute.

Verification

  • npx vitest run: 22 test files passed, 205 tests passed.

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.

Improve test coverage with Vitest

1 participant