Skip to content

Commit 3154b5e

Browse files
committed
refactor: remove flushMicroTasks calls
1 parent 4caa4a7 commit 3154b5e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/user-event/utils/dispatch-event.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ReactTestInstance } from 'react-test-renderer';
22
import act from '../../act';
3-
import { flushMicroTasks } from '../../flushMicroTasks';
43
import { getHostParent } from '../../helpers/component-tree';
54
import { isHostTextInput } from '../../helpers/host-component-names';
65

@@ -25,7 +24,6 @@ export function dispatchHostEvent(
2524

2625
act(() => {
2726
handler(event);
28-
flushMicroTasks();
2927
});
3028
}
3129

@@ -49,7 +47,6 @@ export function dispatchOwnHostEvent(
4947

5048
act(() => {
5149
handler(event);
52-
flushMicroTasks();
5350
});
5451
}
5552

0 commit comments

Comments
 (0)