Skip to content

Add test to ensure setUpDefaultReactNativeEnvironment does not access feature flags#53057

Closed
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D79639890
Closed

Add test to ensure setUpDefaultReactNativeEnvironment does not access feature flags#53057
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D79639890

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

This adds a Fantom test to ensure that setUpDefaultReactNativeEnvironment doesn't read any feature flags. This prevents catching this as a runtime issue when the feature flag system complains that feature flags were accessed before being overridden, which always would happen if this module read any flags (as it runs before any product code that sets overrides).

Differential Revision: D79639890

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 5, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79639890

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79639890

… feature flags (facebook#53057)

Summary:
Pull Request resolved: facebook#53057

Changelog: [internal]

This adds a Fantom test to ensure that `setUpDefaultReactNativeEnvironment` doesn't read any feature flags. This prevents catching this as a runtime issue when the feature flag system complains that feature flags were accessed before being overridden, which always would happen if this module read any flags (as it runs before any product code that sets overrides).

Reviewed By: rshest

Differential Revision: D79639890
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79639890

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 5, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 5936f29.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants