test(rsc): fix ssr modulepreload link test #565
Merged
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.
Description
__vite_rsc_assets_manifest.jsshouldn't beimport-ed during the test since the module will be cached inside playwright worker but the content can change between different test variants (e.g. build-default and build-cloudflare). This was making rolldown run to fail on first run (then retry always succeeds since playwright recreate a worker) https://github.com/vitejs/vite-plugin-react/actions/runs/16235033401/job/45843973297#step:9:681I already did this for
basic.test.tsvite-plugin-react/packages/plugin-rsc/e2e/basic.test.ts
Lines 236 to 241 in b2b9276
react-router.test.tsstill had the old one.