@@ -6,7 +6,6 @@ const FUNCTIONS_TO_MAKE_ASYNC = new Set(['render', 'renderHook', 'act', 'fireEve
66const FIRE_EVENT_METHODS_TO_MAKE_ASYNC = new Set ( [ 'press' , 'changeText' , 'scroll' ] ) ;
77const SCREEN_METHODS_TO_MAKE_ASYNC = new Set ( [ 'rerender' , 'unmount' ] ) ;
88const RESULT_METHODS_TO_MAKE_ASYNC = new Set ( [ 'rerender' , 'unmount' ] ) ;
9- const SKIP_VARIANTS = new Set ( [ 'unsafe_renderHookSync' , 'unsafe_act' ] ) ;
109const ASYNC_FUNCTIONS_TO_RENAME = new Map ( [
1110 [ 'renderAsync' , 'render' ] ,
1211 [ 'renderHookAsync' , 'renderHook' ] ,
@@ -152,10 +151,6 @@ export default async function transform(
152151 continue ;
153152 }
154153
155- if ( shouldSkipTransformation ( functionCall ) ) {
156- continue ;
157- }
158-
159154 const containingFunction = findContainingTestFunction ( functionCall ) ;
160155 if ( ! containingFunction ) {
161156 continue ;
@@ -1146,14 +1141,6 @@ function transformRNTLCallsInsideCustomRender(
11461141 continue ;
11471142 }
11481143
1149- const functionNode = rntlCall . field ( 'function' ) ;
1150- if ( functionNode ) {
1151- const funcName = functionNode . text ( ) ;
1152- if ( SKIP_VARIANTS . has ( funcName ) ) {
1153- continue ;
1154- }
1155- }
1156-
11571144 const callStart = rntlCall . range ( ) . start . index ;
11581145 edits . push ( {
11591146 startPos : callStart ,
@@ -1176,15 +1163,6 @@ function isCallAlreadyAwaited(functionCall: SgNode<TSX>): boolean {
11761163 return parent !== null && parent . is ( 'await_expression' ) ;
11771164}
11781165
1179- function shouldSkipTransformation ( functionCall : SgNode < TSX > ) : boolean {
1180- const functionNode = functionCall . field ( 'function' ) ;
1181- if ( functionNode ) {
1182- const funcName = functionNode . text ( ) ;
1183- return SKIP_VARIANTS . has ( funcName ) ;
1184- }
1185- return false ;
1186- }
1187-
11881166function addAwaitBeforeCall ( functionCall : SgNode < TSX > , edits : Edit [ ] ) : void {
11891167 const callStart = functionCall . range ( ) . start . index ;
11901168 edits . push ( {
0 commit comments