Skip to content

Commit 55dd0b1

Browse files
authored
Stop using Scheduler.log to test double invocations (#29008)
1 parent bf046e8 commit 55dd0b1

File tree

3 files changed

+322
-213
lines changed

3 files changed

+322
-213
lines changed

packages/internal-test-utils/__tests__/ReactInternalTestUtils-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ describe('ReactInternalTestUtils', () => {
161161

162162
const root = ReactNoop.createRoot();
163163
await act(() => {
164-
root.render(<App />);
164+
root.render(
165+
<React.StrictMode>
166+
<App />
167+
</React.StrictMode>
168+
);
165169
});
166170
assertLog(['A', 'B', 'C']);
167171
});

0 commit comments

Comments
 (0)