Skip to content

Commit 5c3a456

Browse files
committed
gating
1 parent 7ea7870 commit 5c3a456

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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
<>

0 commit comments

Comments
 (0)