[tests] assertLog before act in ReactUpdates (#28760)
Fixes tests blocking https://github.com/facebook/react/pull/28737
Ricky committed
Apr 10, 2024 at 10:34 UTC
6e1e2f2198b9c1f9259417cb569d92206ccf55f5
1 file changed
+2
packages/react-dom/src/__tests__/ReactUpdates-test.js
+2
@@ -1900,6 +1900,8 @@ describe('ReactUpdates', () => {
1900
await act(() => {
1901
root.render(<Terminating />);
1902
});
1903
+
1904
+ assertLog(Array.from({length: LIMIT + 1}, (_, k) => k));
1905
expect(container.textContent).toBe('50');
1906
await act(() => {
1907
_setStep(0);