Skip to content

test(brochure): stub setItem in the malformed-registry test's storage - #4767

Merged
MattDHill merged 1 commit into
masterfrom
fix/brochure-test-storage-stub
Nov 17, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/brochure-test-storage-stub

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Closes #4766.

Brochure reports malformed registry URLs and can load the next selection failed on master. Once a non-default registry loads, MarketplaceService.currentRegistry$ saves it to the custom-registry slot in local storage (added in #4724). The test's storage stub had only getItem, so setItem threw TypeError inside the tap, the stream errored before emitting, and registries.length stayed 0. The service is correct; the stub now has a no-op setItem.

With this change npm run check:rpc-clients passes (107/107), so the rest of the npm run check chain runs again.

🤖 Generated with Claude Code

The custom-registry slot from #4724 writes to local storage once a
non-default registry loads. The stub only had getItem, so the write threw
inside currentRegistry$ and the valid selection never emitted.

Closes #4766

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill MattDHill added the brochure Brochure marketplace label Nov 17, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Adding setItem to the test's storage stub lets the production service save a successfully loaded custom registry before emitting it. The malformed-URL and subsequent-selection assertions remain intact; production behavior is unchanged.

Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: The author reports npm run check:rpc-clients passing 107/107. I traced the test through the real service and confirmed a clean merge with origin/master; I ran no tests as reviewer. Prettier and Conflict Markers passed. CI tests, generated-artifact checks, and binary builds remain in progress.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

brochure Brochure marketplace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Brochure test 'reports malformed registry URLs and can load the next selection' fails on master

2 participants