From b23203e79975c3d8c677ddf89515915fc98e90e3 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sat, 17 Feb 2024 15:28:18 +0100 Subject: [PATCH] Annotate legacy mode test in ReactDOMSingletonComponents (#28339) These are mainly regression tests for legacy root. --- .../src/__tests__/ReactDOMSingletonComponents-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js b/packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js index 9c4c3fc913be1..ff1cbf066322d 100644 --- a/packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js @@ -996,17 +996,17 @@ describe('ReactDOM HostSingleton', () => { }); // https://github.com/facebook/react/issues/26128 - it('(#26128) does not throw when rendering at body', async () => { + it('(#26128) does not throw when rendering at body in legacy mode', async () => { ReactDOM.render(
, document.body); }); // https://github.com/facebook/react/issues/26128 - it('(#26128) does not throw when rendering at ', async () => { + it('(#26128) does not throw when rendering at in legacy mode', async () => { ReactDOM.render(, document.documentElement); }); // https://github.com/facebook/react/issues/26128 - it('(#26128) does not throw when rendering at document', async () => { + it('(#26128) does not throw when rendering at document in legacy mode', async () => { ReactDOM.render(, document); }); });