@@ -2254,7 +2254,6 @@ describe('ReactHooksWithNoopRenderer', () => {
2254
2254
} ;
2255
2255
} ) ;
2256
2256
2257
- // @gate skipUnmountedBoundaries
2258
2257
it ( 'should use the nearest still-mounted boundary if there are no unmounted boundaries' , async ( ) => {
2259
2258
await act ( ( ) => {
2260
2259
ReactNoop . render (
@@ -2280,7 +2279,6 @@ describe('ReactHooksWithNoopRenderer', () => {
2280
2279
] ) ;
2281
2280
} ) ;
2282
2281
2283
- // @gate skipUnmountedBoundaries
2284
2282
it ( 'should skip unmounted boundaries and use the nearest still-mounted boundary' , async ( ) => {
2285
2283
function Conditional ( { showChildren} ) {
2286
2284
if ( showChildren ) {
@@ -2323,7 +2321,6 @@ describe('ReactHooksWithNoopRenderer', () => {
2323
2321
] ) ;
2324
2322
} ) ;
2325
2323
2326
- // @gate skipUnmountedBoundaries
2327
2324
it ( 'should call getDerivedStateFromError in the nearest still-mounted boundary' , async ( ) => {
2328
2325
function Conditional ( { showChildren} ) {
2329
2326
if ( showChildren ) {
@@ -2367,7 +2364,6 @@ describe('ReactHooksWithNoopRenderer', () => {
2367
2364
) ;
2368
2365
} ) ;
2369
2366
2370
- // @gate skipUnmountedBoundaries
2371
2367
it ( 'should rethrow error if there are no still-mounted boundaries' , async ( ) => {
2372
2368
function Conditional ( { showChildren} ) {
2373
2369
if ( showChildren ) {
@@ -2531,10 +2527,6 @@ describe('ReactHooksWithNoopRenderer', () => {
2531
2527
assertLog ( [ 'layout destroy' , 'passive destroy' ] ) ;
2532
2528
} ) ;
2533
2529
2534
- // TODO: This test fails when skipUnmountedBoundaries is disabled. However,
2535
- // it's also rolled out to open source already and partially to www. So
2536
- // we should probably just land it.
2537
- // @gate skipUnmountedBoundaries
2538
2530
it ( 'assumes passive effect destroy function is either a function or undefined' , async ( ) => {
2539
2531
function App ( props ) {
2540
2532
useEffect ( ( ) => {
@@ -3117,7 +3109,6 @@ describe('ReactHooksWithNoopRenderer', () => {
3117
3109
assertLog ( [ 'Unmount normal [current: 1]' , 'Mount normal [current: 1]' ] ) ;
3118
3110
} ) ;
3119
3111
3120
- // @gate skipUnmountedBoundaries
3121
3112
it ( 'catches errors thrown in useLayoutEffect' , async ( ) => {
3122
3113
class ErrorBoundary extends React . Component {
3123
3114
state = { error : null } ;
0 commit comments