@@ -16,8 +16,9 @@ const React = require('react');
1616
1717const  ReactTestRenderer  =  require ( 'react-test-renderer' ) ; 
1818const  ShallowRenderer  =  require ( 'react-test-renderer/shallow' ) ; 
19- /* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow 
20-  * v0.120 was deployed. To see the error, delete this comment and run Flow. */ 
19+ /* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an error 
20+  * found when Flow v0.122.0 was deployed. To see the error, delete this comment 
21+  * and run Flow. */ 
2122const  shallowRenderer  =  new  ShallowRenderer ( ) ; 
2223
2324import  type  { ReactTestRenderer  as  ReactTestRendererType }  from  'react-test-renderer' ; 
@@ -27,8 +28,9 @@ export type ReactTestInstance = $PropertyType<ReactTestRendererType, 'root'>;
2728export  type  Predicate  =  ( node : ReactTestInstance )  =>  boolean ; 
2829
2930type   $ReturnType < Fn >  =  $Call << Ret ,  A > ( ( ...A )  =>  Ret )  =>  Ret ,  Fn > ; 
30- /* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow 
31-  * v0.120 was deployed. To see the error, delete this comment and run Flow. */ 
31+ /* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an error 
32+  * found when Flow v0.122.0 was deployed. To see the error, delete this comment 
33+  * and run Flow. */ 
3234export  type  ReactTestRendererJSON  =  $ReturnType < ReactTestRenderer . create . toJSON > ; 
3335
3436const  { 
@@ -54,13 +56,13 @@ function byClickable(): Predicate {
5456      // HACK: Find components that use `Pressability`. 
5557      node . instance ?. state ?. pressability  !=  null  || 
5658      // TODO: Remove this after deleting `Touchable`. 
57-       /* $FlowFixMe(>=0.120.0 ) This comment suppresses an error found when Flow  
58-        * v0.120  was deployed. To see the error, delete this comment and run  
59-        * Flow. */ 
59+       /* $FlowFixMe(>=0.122.0 site=react_native_fb ) This comment suppresses an 
60+        * error found when Flow  v0.122.0  was deployed. To see the error, delete 
61+        * this comment and run  Flow. */ 
6062      ( node . instance  && 
61-         /* $FlowFixMe(>=0.120.0 ) This comment suppresses an error found when  
62-          * Flow v0.120  was deployed. To see the error, delete this comment and  
63-          * run Flow. */ 
63+         /* $FlowFixMe(>=0.122.0 site=react_native_fb ) This comment suppresses 
64+          * an error found when  Flow v0.122.0  was deployed. To see the error, 
65+          * delete this comment and  run Flow. */ 
6466        typeof  node . instance . touchableHandlePress  ===  'function' ) , 
6567    'is clickable' , 
6668  ) ; 
@@ -75,9 +77,9 @@ function byTestID(testID: string): Predicate {
7577
7678function  byTextMatching ( regex : RegExp ) : Predicate  { 
7779  return  withMessage ( 
78-     /* $FlowFixMe(>=0.120.0 ) This comment suppresses an error found when Flow  
79-      * v0.120  was deployed. To see the error, delete this comment and run Flow.  
80-      */ 
80+     /* $FlowFixMe(>=0.122.0 site=react_native_fb ) This comment suppresses an 
81+      * error found when Flow  v0.122.0  was deployed. To see the error, delete 
82+      * this comment and run Flow. * / 
8183    node  =>  node . props  &&  regex . exec ( node . props . children ) , 
8284    `text content matches ${ regex . toString ( ) }  ` , 
8385  ) ; 
0 commit comments