Skip to content

Commit

Permalink
[tests] assertLog before act in ReactUpdates (facebook#28760)
Browse files Browse the repository at this point in the history
Fixes tests blocking facebook#28737
  • Loading branch information
rickhanlonii authored and AndyPengc12 committed Apr 15, 2024
1 parent 50b41eb commit 84e9db3
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 84e9db3

Please sign in to comment.