Skip to content

Commit 9b89187

Browse files
committed
Fix a newly firing warning
1 parent 6f44db2 commit 9b89187

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-reconciler/src/__tests__/ReactHooksWithNoopRenderer-test.internal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ describe('ReactHooksWithNoopRenderer', () => {
454454

455455
// Test that it works on update, too. This time the log is a bit different
456456
// because we started with reducerB instead of reducerA.
457-
counter.current.dispatch('reset');
457+
ReactNoop.act(() => {
458+
counter.current.dispatch('reset');
459+
});
458460
ReactNoop.render(<Counter ref={counter} />);
459461
expect(ReactNoop.flush()).toEqual([
460462
'Render: 0',

0 commit comments

Comments
 (0)