@@ -19,7 +19,7 @@ let Suspense;
19
19
let SuspenseList ;
20
20
let act ;
21
21
let IdleEventPriority ;
22
- let __WWW__ ;
22
+ let usingPartialRenderer ;
23
23
24
24
function normalizeCodeLocInfo ( strOrErr ) {
25
25
if ( strOrErr && strOrErr . replace ) {
@@ -111,7 +111,7 @@ describe('ReactDOMServerPartialHydration', () => {
111
111
SuspenseList = React . SuspenseList ;
112
112
}
113
113
114
- __WWW__ = global . __WWW__ ;
114
+ usingPartialRenderer = global . __WWW__ && ! __EXPERIMENTAL__ ;
115
115
116
116
IdleEventPriority = require ( 'react-reconciler/constants' ) . IdleEventPriority ;
117
117
} ) ;
@@ -1671,8 +1671,8 @@ describe('ReactDOMServerPartialHydration', () => {
1671
1671
Scheduler . unstable_yieldValue ( error . message ) ;
1672
1672
} ,
1673
1673
} ) ;
1674
- // we exclude dev fb bundles
1675
- if ( __DEV__ && ! __WWW__ ) {
1674
+ // we exclude fb bundles with partial renderer
1675
+ if ( __DEV__ && ! usingPartialRenderer ) {
1676
1676
expect ( Scheduler ) . toFlushAndYield ( [
1677
1677
'This Suspense boundary was aborted by the server.' ,
1678
1678
] ) ;
@@ -1739,8 +1739,8 @@ describe('ReactDOMServerPartialHydration', () => {
1739
1739
Scheduler . unstable_yieldValue ( error . message ) ;
1740
1740
} ,
1741
1741
} ) ;
1742
- // we exclude dev fb bundles
1743
- if ( __DEV__ && ! __WWW__ ) {
1742
+ // we exclude fb bundles with partial renderer
1743
+ if ( __DEV__ && ! usingPartialRenderer ) {
1744
1744
expect ( Scheduler ) . toFlushAndYield ( [
1745
1745
'This Suspense boundary was aborted by the server.' ,
1746
1746
] ) ;
@@ -1812,8 +1812,8 @@ describe('ReactDOMServerPartialHydration', () => {
1812
1812
Scheduler . unstable_yieldValue ( error . message ) ;
1813
1813
} ,
1814
1814
} ) ;
1815
- // we exclude dev fb bundles
1816
- if ( __DEV__ && ! __WWW__ ) {
1815
+ // we exclude fb bundles with partial renderer
1816
+ if ( __DEV__ && ! usingPartialRenderer ) {
1817
1817
expect ( Scheduler ) . toFlushAndYield ( [
1818
1818
'This Suspense boundary was aborted by the server.' ,
1819
1819
] ) ;
@@ -2136,8 +2136,8 @@ describe('ReactDOMServerPartialHydration', () => {
2136
2136
} ) ;
2137
2137
2138
2138
suspend = true ;
2139
- // we exclude fb-classic as well by requiring __EXPERIMENTAL__
2140
- if ( __DEV__ && __EXPERIMENTAL__ ) {
2139
+ // we exclude fb bundles with partial renderer
2140
+ if ( __DEV__ && ! usingPartialRenderer ) {
2141
2141
expect ( Scheduler ) . toFlushAndYield ( [
2142
2142
'This Suspense boundary was aborted by the server.' ,
2143
2143
] ) ;
@@ -2205,8 +2205,8 @@ describe('ReactDOMServerPartialHydration', () => {
2205
2205
Scheduler . unstable_yieldValue ( error . message ) ;
2206
2206
} ,
2207
2207
} ) ;
2208
- // we exclude dev fb bundles
2209
- if ( __DEV__ && ! __WWW__ ) {
2208
+ // we exclude fb bundles with partial renderer
2209
+ if ( __DEV__ && ! usingPartialRenderer ) {
2210
2210
expect ( Scheduler ) . toFlushAndYield ( [
2211
2211
'This Suspense boundary was aborted by the server.' ,
2212
2212
] ) ;
0 commit comments