From 6e1e2f2198b9c1f9259417cb569d92206ccf55f5 Mon Sep 17 00:00:00 2001 From: Ricky Date: Wed, 10 Apr 2024 10:34:11 -0400 Subject: [PATCH] [tests] assertLog before act in ReactUpdates (#28760) Fixes tests blocking https://github.com/facebook/react/pull/28737 --- 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 d2a02f7956ec1..322907635d798 100644 --- a/packages/react-dom/src/__tests__/ReactUpdates-test.js +++ b/packages/react-dom/src/__tests__/ReactUpdates-test.js @@ -1900,6 +1900,8 @@ describe('ReactUpdates', () => { await act(() => { root.render(); }); + + assertLog(Array.from({length: LIMIT + 1}, (_, k) => k)); expect(container.textContent).toBe('50'); await act(() => { _setStep(0);