Skip to content

Commit

Permalink
Stop using Scheduler.log to test double invocations
Browse files Browse the repository at this point in the history
We don't do this to test double render invocations either since we ignore Scheduler.log for the second render.
The plan is to do the same for double invoking effects to reduce test noise.
  • Loading branch information
eps1lon committed May 20, 2024
1 parent 6f90365 commit 17e94fe
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ describe('ReactInternalTestUtils', () => {

const root = ReactNoop.createRoot();
await act(() => {
root.render(<App />);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
});
assertLog(['A', 'B', 'C']);
});
Expand Down
Loading

0 comments on commit 17e94fe

Please sign in to comment.