@@ -40,6 +40,7 @@ describe('created with ReactFabric called with ReactNative', () => {
4040 require ( 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ) . getNativeTagFromPublicInstance ;
4141 } ) ;
4242
43+ // @gate !disableLegacyMode
4344 it ( 'find Fabric instances with the RN renderer' , ( ) => {
4445 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
4546 validAttributes : { title : true } ,
@@ -60,6 +61,7 @@ describe('created with ReactFabric called with ReactNative', () => {
6061 expect ( getNativeTagFromPublicInstance ( instance ) ) . toBe ( 2 ) ;
6162 } ) ;
6263
64+ // @gate !disableLegacyMode
6365 it ( 'find Fabric nodes with the RN renderer' , ( ) => {
6466 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
6567 validAttributes : { title : true } ,
@@ -80,6 +82,7 @@ describe('created with ReactFabric called with ReactNative', () => {
8082 expect ( handle ) . toBe ( 2 ) ;
8183 } ) ;
8284
85+ // @gate !disableLegacyMode
8386 it ( 'dispatches commands on Fabric nodes with the RN renderer' , ( ) => {
8487 nativeFabricUIManager . dispatchCommand . mockClear ( ) ;
8588 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -101,6 +104,7 @@ describe('created with ReactFabric called with ReactNative', () => {
101104 expect ( UIManager . dispatchViewManagerCommand ) . not . toBeCalled ( ) ;
102105 } ) ;
103106
107+ // @gate !disableLegacyMode
104108 it ( 'dispatches sendAccessibilityEvent on Fabric nodes with the RN renderer' , ( ) => {
105109 nativeFabricUIManager . sendAccessibilityEvent . mockClear ( ) ;
106110 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -143,6 +147,7 @@ describe('created with ReactNative called with ReactFabric', () => {
143147 . ReactNativeViewConfigRegistry . register ;
144148 } ) ;
145149
150+ // @gate !disableLegacyMode
146151 it ( 'find Paper instances with the Fabric renderer' , ( ) => {
147152 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
148153 validAttributes : { title : true } ,
@@ -163,6 +168,7 @@ describe('created with ReactNative called with ReactFabric', () => {
163168 expect ( instance . _nativeTag ) . toBe ( 3 ) ;
164169 } ) ;
165170
171+ // @gate !disableLegacyMode
166172 it ( 'find Paper nodes with the Fabric renderer' , ( ) => {
167173 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
168174 validAttributes : { title : true } ,
@@ -183,6 +189,7 @@ describe('created with ReactNative called with ReactFabric', () => {
183189 expect ( handle ) . toBe ( 3 ) ;
184190 } ) ;
185191
192+ // @gate !disableLegacyMode
186193 it ( 'dispatches commands on Paper nodes with the Fabric renderer' , ( ) => {
187194 UIManager . dispatchViewManagerCommand . mockReset ( ) ;
188195 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -205,6 +212,7 @@ describe('created with ReactNative called with ReactFabric', () => {
205212 expect ( nativeFabricUIManager . dispatchCommand ) . not . toBeCalled ( ) ;
206213 } ) ;
207214
215+ // @gate !disableLegacyMode
208216 it ( 'dispatches sendAccessibilityEvent on Paper nodes with the Fabric renderer' , ( ) => {
209217 ReactNativePrivateInterface . legacySendAccessibilityEvent . mockReset ( ) ;
210218 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
0 commit comments