Repository navigation
test(bundler-tests): bundle platform packages with Metro, Expo and Jest jsdom - #7131
Merged
overbalance merged 1 commit intoSep 28, 2026
Conversation
overbalance
force-pushed
the
overbalance/bundler-tests-platform-resolution
branch
from
September 28, 2026 23:18
3699031 to
3eb1bfc
Compare
Pull request dashboard statusMerged · refreshed 2026-09-28 23:43 UTC Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7131 +/- ##
=======================================
Coverage 95.04% 95.04%
=======================================
Files 383 383
Lines 13455 13455
Branches 3094 3094
=======================================
Hits 12788 12788
Misses 667 667 🚀 New features to boost your workflow:
|
JacksonWeber
approved these changes
Sep 28, 2026
Contributor
|
IIUC, these pass now, but help show failures in work you are doing on #7088 |
overbalance
deleted the
overbalance/bundler-tests-platform-resolution
branch
September 28, 2026 23:42
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.
Which problem is this PR solving?
The bundler tests did not cover React Native bundlers or Jest's jsdom environment, so platform resolution regressions there went unnoticed.
Short description of the changes
bundler-tests/react-native/metro: builds the platform packages with Metro for ios and android using the stock@react-native/metro-configdefaults, and fails if anyplatform/nodefile is bundled or a package bundles noplatform/browserfile.bundler-tests/react-native/expo: runsexpo exportfor ios and android with the stockexpo/metro-configdefaults and applies the same checks to the source maps.bundler-tests/browser/jest-jsdom: checks that Jest withtestEnvironment: jsdomresolves the browser implementations, and that the node environment still resolves node.Type of change
How Has This Been Tested?
npm run test:bundlein each new fixtureChecklist: