Skip to content

test(rsc): run cloudflare e2e on a copy of starter-extra - #1488

Merged
hi-ogawa merged 4 commits into
mainfrom
test/rsc-cloudflare-e2e-fixture
Oct 5, 2026
Merged

hi-ogawa merged 4 commits into
mainfrom
test/rsc-cloudflare-e2e-fixture

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

The Cloudflare e2e tests ran directly on examples/starter-extra, and their dev HMR tests edit its client, root, and css files in place before restoring them. Most other e2e specs copy examples/starter-extra as the base for their inline fixtures. Playwright runs two workers, so a spec on the other worker could copy the example mid-edit and build a fixture with the edited source. #1480 hit the same race with examples/starter, where it showed up as a fixture rendering Client [edit] Counter.

This PR runs the Cloudflare tests on their own copy under the e2e temp directory, the same way other inline fixtures work. No test edits examples/starter-extra in place anymore. The copy resolves packages from the shared e2e fixture package, so the Cloudflare Vite plugin and wrangler are added there.

The contributing guide also told contributors to base inline fixtures on examples/starter, which contradicts the agent guide and what nearly every existing test does. It now says examples/starter-extra.

hi-ogawa and others added 4 commits October 5, 2026 16:55
The cloudflare dev tests edited `examples/starter-extra` in place for
HMR, while other specs copy that directory as their inline fixture base.
A copy taken on the other worker during an edit could build with the
edited source. Run the cloudflare tests on an inline fixture instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Match the Cloudflare plugin and wrangler versions in starter-extra.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@hi-ogawa
hi-ogawa marked this pull request as ready for review October 5, 2026 08:59
@hi-ogawa
hi-ogawa merged commit c714161 into main Oct 5, 2026
21 of 22 checks passed
@hi-ogawa
hi-ogawa deleted the test/rsc-cloudflare-e2e-fixture branch October 5, 2026 09:05
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