test: cover durable object bootstrap helpers#269
Open
TechEnthusGH wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
StarbaseDBDurableObjectbootstrap behavior.tmp_cache, allowlist tables, RLS policies).init()returning bound helper methods and raw query cursor metadata for parameterized queries.This is intentionally test-only and scoped to
src/do.test.ts.Bounty
/claim #71
Validation
corepack pnpm exec vitest run src/do.test.ts-> 9 tests passedcorepack pnpm exec prettier --check src/do.test.ts-> passedgit diff --check-> passedcorepack pnpm exec vitest run --coverage --coverage.reporter=json-summary --coverage.reporter=text-summary-> existing unrelated RLS baseline failures remain; this PR improvessrc/do.tscoverage from 41.17% to 51.96% lines, 37.5% to 62.5% functions, and 17.64% to 29.41% branches.Full-suite baseline note: current
mainalready fails foursrc/rls/index.test.tsassertions and the global branch threshold before this PR's changes.Demo
This is a test-only coverage PR; the focused terminal verification above demonstrates the change.