From cc24ec08751efb7b2fb35888ccede5d2bb4f2578 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Fri, 5 Apr 2024 09:47:35 -0500 Subject: [PATCH] [tests] assertLog before act in ReactUpdates --- packages/react-dom/src/__tests__/ReactUpdates-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-dom/src/__tests__/ReactUpdates-test.js b/packages/react-dom/src/__tests__/ReactUpdates-test.js index d4acfaa9b35f8..287ce597e76c1 100644 --- a/packages/react-dom/src/__tests__/ReactUpdates-test.js +++ b/packages/react-dom/src/__tests__/ReactUpdates-test.js @@ -1899,6 +1899,8 @@ describe('ReactUpdates', () => { await act(() => { root.render(); }); + + assertLog(Array.from({length: LIMIT + 1}, (_, k) => k)); expect(container.textContent).toBe('50'); await act(() => { _setStep(0);