File tree 1 file changed +1
-2
lines changed 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ function waitFor(
49
49
50
50
const overallTimeout = setTimeout ( handleTimeout , timeout )
51
51
const intervalId = setInterval ( handleInterval , interval )
52
+ checkCallback ( )
52
53
53
54
const wasUsingJestFakeTimers = jestFakeTimersAreEnabled ( )
54
55
if ( wasUsingJestFakeTimers ) {
55
- checkCallback ( )
56
56
// this is a dangerous rule to disable because it could lead to an
57
57
// infinite loop. However, eslint isn't smart enough to know that we're
58
58
// setting finished inside `onDone` which will be called when we're done
@@ -93,7 +93,6 @@ function waitFor(
93
93
const { MutationObserver} = getWindowFromNode ( container )
94
94
observer = new MutationObserver ( handleInterval )
95
95
observer . observe ( container , mutationObserverOptions )
96
- checkCallback ( )
97
96
}
98
97
99
98
function onDone ( error , result ) {
You can’t perform that action at this time.
0 commit comments