Skip to content

fix: decouple browser() unsupported test from installed react-dom version - #253

Merged
uhyo merged 1 commit into
masterfrom
claude/pr-252-ci-failure-woft4u
Sep 17, 2026
Merged

uhyo merged 1 commit into
masterfrom
claude/pr-252-ci-failure-woft4u

Conversation

@uhyo

@uhyo uhyo commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

CI on #252 fails because browserBailout.unsupported.test.tsx relied on the repo's installed react-dom (19.2) predating the browser() API. The Dependabot bump to react-dom 19.3.0 makes browser a real export, so getBrowserFn() no longer throws and the "throws when opted in on a React build without the browser() API" assertion fails.

This PR makes the test independent of the installed React version: it mocks react-dom with the browser export removed (vi.mock returning { ...actual, browser: undefined }), mirroring how the companion browserBailout.test.tsx mocks the supported case.

Verification

Once this lands, rebasing #252 on master (·@·d·ependabot r·ebase) should turn its CI green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HAkWNhyYW1CqT7oDrNjffk


Generated by Claude Code

…sion

The pathlessSSROutletDeferral unsupported-build test relied on the repo's
installed react-dom (19.2) predating the browser() API, so bumping
react-dom to 19.3 (where browser() exists) made the expected throw
disappear. Mock react-dom without the browser export instead, mirroring
how browserBailout.test.tsx mocks the supported case, so the test passes
regardless of the installed React version.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HAkWNhyYW1CqT7oDrNjffk
@uhyo
uhyo merged commit aa822b7 into master Sep 17, 2026
1 check passed
@uhyo
uhyo deleted the claude/pr-252-ci-failure-woft4u branch September 17, 2026 07:52
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.

2 participants