Skip to content

Commit

Permalink
[tests] assertLog before act in ReactUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Apr 5, 2024
1 parent a5aedd1 commit cc24ec0
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 @@ -1899,6 +1899,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 cc24ec0

Please sign in to comment.