Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

test: add allowlist unit coverage - #258

#258
Open
023dominus-coder wants to merge 1 commit into
outerbase:mainouterbase/starbasedb:mainfrom
023dominus-coder:bounty-71-allowlist-coverage023dominus-coder/starbasedb:bounty-71-allowlist-coverageCopy head branch name to clipboard
Open

test: add allowlist unit coverage#258
023dominus-coder wants to merge 1 commit into
outerbase:mainouterbase/starbasedb:mainfrom
023dominus-coder:bounty-71-allowlist-coverage023dominus-coder/starbasedb:bounty-71-allowlist-coverageCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.