We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4fd7a commit ee4806fCopy full SHA for ee4806f
packages/react-devtools-shared/src/__tests__/utils.js
@@ -18,11 +18,13 @@ export function act(callback: Function): void {
18
});
19
20
// Flush Bridge operations
21
- actDOM(() => {
22
- actTestRenderer(() => {
23
- jest.runAllTimers();
+ while (global.mockGetTimersCount() > 0) {
+ actDOM(() => {
+ actTestRenderer(() => {
24
+ jest.runAllTimers();
25
+ });
26
- });
27
+ }
28
}
29
30
export async function actAsync(
0 commit comments