Skip to content

Commit 7ce9a4d

Browse files
committed
[tests] assertLog before act in ReactUpdates (#28760)
Fixes tests blocking #28737
1 parent 3383b71 commit 7ce9a4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dom/src/__tests__/ReactUpdates-test.js

+2
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,8 @@ describe('ReactUpdates', () => {
19001900
await act(() => {
19011901
root.render(<Terminating />);
19021902
});
1903+
1904+
assertLog(Array.from({length: LIMIT + 1}, (_, k) => k));
19031905
expect(container.textContent).toBe('50');
19041906
await act(() => {
19051907
_setStep(0);

0 commit comments

Comments
 (0)