@@ -4,8 +4,6 @@ import { Text, View } from 'react-native';
44import { act , renderAsync , screen } from '..' ;
55import { excludeConsoleMessage } from '../test-utils/console' ;
66
7- const testGateReact19 = React . version . startsWith ( '19.' ) ? test : test . skip ;
8-
97// eslint-disable-next-line no-console
108const originalConsoleError = console . error ;
119afterEach ( ( ) => {
@@ -20,7 +18,7 @@ function Suspending({ promise, testID }: { promise: Promise<unknown>; testID: st
2018 return < View testID = { testID } /> ;
2119}
2220
23- testGateReact19 ( 'resolves manually-controlled promise' , async ( ) => {
21+ test ( 'resolves manually-controlled promise' , async ( ) => {
2422 let resolvePromise : ( value : unknown ) => void ;
2523 const promise = new Promise ( ( resolve ) => {
2624 resolvePromise = resolve ;
@@ -45,7 +43,7 @@ testGateReact19('resolves manually-controlled promise', async () => {
4543 expect ( screen . queryByText ( 'Loading...' ) ) . not . toBeOnTheScreen ( ) ;
4644} ) ;
4745
48- testGateReact19 ( 'resolves timer-controlled promise' , async ( ) => {
46+ test ( 'resolves timer-controlled promise' , async ( ) => {
4947 const promise = new Promise ( ( resolve ) => {
5048 setTimeout ( ( ) => resolve ( null ) , 100 ) ;
5149 } ) ;
@@ -85,7 +83,7 @@ class ErrorBoundary extends React.Component<
8583 }
8684}
8785
88- testGateReact19 ( 'handles promise rejection with error boundary' , async ( ) => {
86+ test ( 'handles promise rejection with error boundary' , async ( ) => {
8987 const ERROR_MESSAGE = 'Promise Rejected In Test' ;
9088 // eslint-disable-next-line no-console
9189 console . error = excludeConsoleMessage ( console . error , ERROR_MESSAGE ) ;
@@ -114,7 +112,7 @@ testGateReact19('handles promise rejection with error boundary', async () => {
114112 expect ( screen . queryByTestId ( 'error-content' ) ) . not . toBeOnTheScreen ( ) ;
115113} ) ;
116114
117- testGateReact19 ( 'handles multiple suspending components' , async ( ) => {
115+ test ( 'handles multiple suspending components' , async ( ) => {
118116 let resolvePromise1 : ( value : unknown ) => void ;
119117 let resolvePromise2 : ( value : unknown ) => void ;
120118
@@ -151,7 +149,7 @@ testGateReact19('handles multiple suspending components', async () => {
151149 expect ( screen . queryByText ( 'Loading...' ) ) . not . toBeOnTheScreen ( ) ;
152150} ) ;
153151
154- testGateReact19 ( 'handles multiple suspense boundaries independently' , async ( ) => {
152+ test ( 'handles multiple suspense boundaries independently' , async ( ) => {
155153 let resolvePromise1 : ( value : unknown ) => void ;
156154 let resolvePromise2 : ( value : unknown ) => void ;
157155
0 commit comments