Skip to content

test: add allowlist unit coverage#258

Open
023dominus-coder wants to merge 1 commit into
outerbase:mainfrom
023dominus-coder:bounty-71-allowlist-coverage
Open

test: add allowlist unit coverage#258
023dominus-coder wants to merge 1 commit into
outerbase:mainfrom
023dominus-coder:bounty-71-allowlist-coverage

Conversation

@023dominus-coder
Copy link
Copy Markdown

Refs #71

Summary

Adds focused Vitest coverage for the SQL allowlist module.

What changed

  • Adds src/allowlist/index.test.ts.
  • Covers disabled allowlist, admin bypass, AST-normalized allowed queries with trailing semicolon, rejected-query audit inserts, and empty SQL errors.

Validation

Could not run Vitest locally in this environment because pnpm, npm, bun, and npx are not available on PATH and node_modules is not installed.

The test follows existing project patterns from src/cache/index.test.ts and uses vi.fn() mocks for the datasource RPC.

Bounty

Issue: #71

Label: Bounty / Rewarded

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