@@ -18,9 +18,7 @@ describe('ReactDOMFizzStaticNode', () => {
1818 beforeEach ( ( ) => {
1919 jest . resetModules ( ) ;
2020 React = require ( 'react' ) ;
21- if ( __EXPERIMENTAL__ ) {
22- ReactDOMFizzStatic = require ( 'react-dom/static' ) ;
23- }
21+ ReactDOMFizzStatic = require ( 'react-dom/static' ) ;
2422 Suspense = React . Suspense ;
2523 } ) ;
2624
@@ -58,7 +56,7 @@ describe('ReactDOMFizzStaticNode', () => {
5856 }
5957 }
6058
61- // @gate experimental
59+ // @gate enableHalt || enablePostpone
6260 it ( 'should call prerenderToNodeStream' , async ( ) => {
6361 const result = await ReactDOMFizzStatic . prerenderToNodeStream (
6462 < div > hello world</ div > ,
@@ -67,14 +65,14 @@ describe('ReactDOMFizzStaticNode', () => {
6765 expect ( prelude ) . toMatchInlineSnapshot ( `"<div>hello world</div>"` ) ;
6866 } ) ;
6967
70- // @gate experimental
68+ // @gate enableHalt || enablePostpone
7169 it ( 'should suppport web streams' , async ( ) => {
7270 const result = await ReactDOMFizzStatic . prerender ( < div > hello world</ div > ) ;
7371 const prelude = await readContentWeb ( result . prelude ) ;
7472 expect ( prelude ) . toMatchInlineSnapshot ( `"<div>hello world</div>"` ) ;
7573 } ) ;
7674
77- // @gate experimental
75+ // @gate enableHalt || enablePostpone
7876 it ( 'should emit DOCTYPE at the root of the document' , async ( ) => {
7977 const result = await ReactDOMFizzStatic . prerenderToNodeStream (
8078 < html >
@@ -93,7 +91,7 @@ describe('ReactDOMFizzStaticNode', () => {
9391 }
9492 } ) ;
9593
96- // @gate experimental
94+ // @gate enableHalt || enablePostpone
9795 it ( 'should emit bootstrap script src at the end' , async ( ) => {
9896 const result = await ReactDOMFizzStatic . prerenderToNodeStream (
9997 < div > hello world</ div > ,
@@ -109,7 +107,7 @@ describe('ReactDOMFizzStaticNode', () => {
109107 ) ;
110108 } ) ;
111109
112- // @gate experimental
110+ // @gate enableHalt || enablePostpone
113111 it ( 'emits all HTML as one unit' , async ( ) => {
114112 let hasLoaded = false ;
115113 let resolve ;
@@ -139,7 +137,7 @@ describe('ReactDOMFizzStaticNode', () => {
139137 expect ( prelude ) . toMatchInlineSnapshot ( `"<div><!--$-->Done<!--/$--></div>"` ) ;
140138 } ) ;
141139
142- // @gate experimental
140+ // @gate enableHalt || enablePostpone
143141 it ( 'should reject the promise when an error is thrown at the root' , async ( ) => {
144142 const reportedErrors = [ ] ;
145143 let caughtError = null ;
@@ -161,7 +159,7 @@ describe('ReactDOMFizzStaticNode', () => {
161159 expect ( reportedErrors ) . toEqual ( [ theError ] ) ;
162160 } ) ;
163161
164- // @gate experimental
162+ // @gate enableHalt || enablePostpone
165163 it ( 'should reject the promise when an error is thrown inside a fallback' , async ( ) => {
166164 const reportedErrors = [ ] ;
167165 let caughtError = null ;
@@ -185,7 +183,7 @@ describe('ReactDOMFizzStaticNode', () => {
185183 expect ( reportedErrors ) . toEqual ( [ theError ] ) ;
186184 } ) ;
187185
188- // @gate experimental
186+ // @gate enableHalt || enablePostpone
189187 it ( 'should not error the stream when an error is thrown inside suspense boundary' , async ( ) => {
190188 const reportedErrors = [ ] ;
191189 const result = await ReactDOMFizzStatic . prerenderToNodeStream (
@@ -206,7 +204,7 @@ describe('ReactDOMFizzStaticNode', () => {
206204 expect ( reportedErrors ) . toEqual ( [ theError ] ) ;
207205 } ) ;
208206
209- // @gate experimental
207+ // @gate enableHalt || enablePostpone
210208 it ( 'should be able to complete by aborting even if the promise never resolves' , async ( ) => {
211209 const errors = [ ] ;
212210 const controller = new AbortController ( ) ;
@@ -236,7 +234,7 @@ describe('ReactDOMFizzStaticNode', () => {
236234 expect ( errors ) . toEqual ( [ 'This operation was aborted' ] ) ;
237235 } ) ;
238236
239- // @gate experimental
237+ // @gate enableHalt || enablePostpone
240238 // @gate !enableHalt
241239 it ( 'should reject if aborting before the shell is complete and enableHalt is disabled' , async ( ) => {
242240 const errors = [ ] ;
@@ -302,7 +300,7 @@ describe('ReactDOMFizzStaticNode', () => {
302300 expect ( content ) . toBe ( '' ) ;
303301 } ) ;
304302
305- // @gate experimental
303+ // @gate enableHalt || enablePostpone
306304 it ( 'should be able to abort before something suspends' , async ( ) => {
307305 const errors = [ ] ;
308306 const controller = new AbortController ( ) ;
@@ -343,7 +341,7 @@ describe('ReactDOMFizzStaticNode', () => {
343341 }
344342 } ) ;
345343
346- // @gate experimental
344+ // @gate enableHalt || enablePostpone
347345 // @gate !enableHalt
348346 it ( 'should reject if passing an already aborted signal and enableHalt is disabled' , async ( ) => {
349347 const errors = [ ] ;
@@ -414,7 +412,7 @@ describe('ReactDOMFizzStaticNode', () => {
414412 expect ( content ) . toBe ( '' ) ;
415413 } ) ;
416414
417- // @gate experimental
415+ // @gate enableHalt || enablePostpone
418416 it ( 'supports custom abort reasons with a string' , async ( ) => {
419417 const promise = new Promise ( r => { } ) ;
420418 function Wait ( ) {
@@ -456,7 +454,7 @@ describe('ReactDOMFizzStaticNode', () => {
456454 expect ( errors ) . toEqual ( [ 'foobar' , 'foobar' ] ) ;
457455 } ) ;
458456
459- // @gate experimental
457+ // @gate enableHalt || enablePostpone
460458 it ( 'supports custom abort reasons with an Error' , async ( ) => {
461459 const promise = new Promise ( r => { } ) ;
462460 function Wait ( ) {
0 commit comments