Skip to content

react-native-babel-preset: Add transform snapshot tests#55338

Closed
robhogan wants to merge 1 commit intomainfrom
export-D91677590
Closed

react-native-babel-preset: Add transform snapshot tests#55338
robhogan wants to merge 1 commit intomainfrom
export-D91677590

Conversation

@robhogan
Copy link
Contributor

Summary:
Add snapshot tests to validate Babel transform output under react-native/babel-preset under different configurations (default, hermes-stable, hermes-canary) and options (dev/prod, ESM output, babel-runtime). This enables catching unintended transform changes during preset updates.

The tests use a "kitchen-sink" input fixture covering private fields, async generators, Flow enums, JSX, hooks, and other syntax patterns, with separate output files per configuration for easy diffing.

Changelog: [Internal]

Differential Revision: D91677590

@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 Jan 28, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 28, 2026

@robhogan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91677590.

facebook-github-bot pushed a commit that referenced this pull request Feb 10, 2026
Summary:

Add snapshot tests to validate Babel transform output under `react-native/babel-preset` under different configurations (default, hermes-stable, hermes-canary) and options (dev/prod, ESM output, babel-runtime). This enables catching unintended transform changes during preset updates.

The tests use a "kitchen-sink" input fixture covering private fields, async generators, Flow enums, JSX, hooks, and other syntax patterns, with separate output files per configuration for easy diffing.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D91677590
Summary:

Add snapshot tests to validate Babel transform output under `react-native/babel-preset` under different configurations (default, hermes-stable, hermes-canary) and options (dev/prod, ESM output, babel-runtime). This enables catching unintended transform changes during preset updates.

The tests use a "kitchen-sink" input fixture covering private fields, async generators, Flow enums, JSX, hooks, and other syntax patterns, with separate output files per configuration for easy diffing.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D91677590
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @robhogan in 063c7d5

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 11, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 11, 2026

This pull request has been merged in 063c7d5.

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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants