Skip to content

Commit

Permalink
[tests] assertLog before act in ReactUpdates (#28760)
Browse files Browse the repository at this point in the history
Fixes tests blocking #28737
  • Loading branch information
rickhanlonii authored Apr 10, 2024
1 parent 88df524 commit 6e1e2f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dom/src/__tests__/ReactUpdates-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,8 @@ describe('ReactUpdates', () => {
await act(() => {
root.render(<Terminating />);
});

assertLog(Array.from({length: LIMIT + 1}, (_, k) => k));
expect(container.textContent).toBe('50');
await act(() => {
_setStep(0);
Expand Down

0 comments on commit 6e1e2f2

Please sign in to comment.