File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/react-dom/src/__tests__ Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -4489,8 +4489,13 @@ describe('ReactDOMFizzServer', () => {
44894489 }
44904490 } ) ;
44914491
4492- // @gate enableFloat
4492+ // @gate experimental && enableFloat
44934493 it ( 'fail hydration if a suitable resource cannot be found in the DOM for a given location (href)' , async ( ) => {
4494+ gate ( flags => {
4495+ if ( ! ( __EXPERIMENTAL__ && flags . enableFloat ) ) {
4496+ throw new Error ( 'bailing out of test' ) ;
4497+ }
4498+ } ) ;
44944499 await actIntoEmptyDocument ( ( ) => {
44954500 const { pipe} = ReactDOMFizzServer . renderToPipeableStream (
44964501 < html >
@@ -4532,8 +4537,13 @@ describe('ReactDOMFizzServer', () => {
45324537 ] ) ;
45334538 } ) ;
45344539
4535- // @gate enableFloat
4540+ // @gate experimental && enableFloat
45364541 it ( 'should error in dev when rendering more than one resource for a given location (href)' , async ( ) => {
4542+ gate ( flags => {
4543+ if ( ! ( __EXPERIMENTAL__ && flags . enableFloat ) ) {
4544+ throw new Error ( 'bailing out of test' ) ;
4545+ }
4546+ } ) ;
45374547 await actIntoEmptyDocument ( ( ) => {
45384548 const { pipe} = ReactDOMFizzServer . renderToPipeableStream (
45394549 < >
You can’t perform that action at this time.
0 commit comments