Skip to content

Commit cc24ec0

Browse files
committed
[tests] assertLog before act in ReactUpdates
1 parent a5aedd1 commit cc24ec0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,8 @@ describe('ReactUpdates', () => {
18991899
await act(() => {
19001900
root.render(<Terminating />);
19011901
});
1902+
1903+
assertLog(Array.from({length: LIMIT + 1}, (_, k) => k));
19021904
expect(container.textContent).toBe('50');
19031905
await act(() => {
19041906
_setStep(0);

0 commit comments

Comments
 (0)