Skip to content

Commit

Permalink
Merge branch 'main' into www-enableFilterEmptyStringAttributesDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens authored Mar 16, 2023
2 parents d1524ea + 87c803d commit 4d1ac5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/__tests__/ReactUpdates-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1646,12 +1646,12 @@ describe('ReactUpdates', () => {
try {
const container = document.createElement('div');
expect(() => {
ReactDOM.render(<App />, container);
const root = ReactDOMClient.createRoot(container);
root.render(<App />);
while (error === null) {
Scheduler.unstable_flushNumberOfYields(1);
Scheduler.unstable_clearLog();
}
expect(error).toContain('Warning: Maximum update depth exceeded.');
expect(stack).toContain(' NonTerminating');
// rethrow error to prevent going into an infinite loop when act() exits
throw error;
Expand Down

0 comments on commit 4d1ac5c

Please sign in to comment.