A framework for building native applications using React
react-native-babel-preset: Add transform snapshot tests (#55338)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55338 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 fbshipit-source-id: d28becdd93a781004287dcd1889ac50224d2a91b
R
Rob Hogan committed
063c7d5cc3e6caca6b841a561320befba52a969b
Parent: fdc1f3c
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 2/10/2026, 10:24:45 PM