diff --git a/packages/react-reconciler/src/__tests__/ReactUse-test.js b/packages/react-reconciler/src/__tests__/ReactUse-test.js index 12e93620b5ded..467c68ff52753 100644 --- a/packages/react-reconciler/src/__tests__/ReactUse-test.js +++ b/packages/react-reconciler/src/__tests__/ReactUse-test.js @@ -663,6 +663,8 @@ describe('ReactUse', () => { } const root1 = ReactNoop.createRoot(); + assertLog(['Async text requested [Hi]']); + await act(() => { root1.render(} />); }); @@ -677,7 +679,7 @@ describe('ReactUse', () => { ); }); }); - assertLog(['Async text requested [Hi]']); + assertLog([]); // While we're waiting for the first root's data to resolve, a second // root renders.