Skip to content

Commit 68c6c17

Browse files
Remove legacy disconnect
1 parent d2b5137 commit 68c6c17

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wait-for.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ function waitFor(
9595
if (!usingFakeTimers) {
9696
clearInterval(intervalId)
9797
observer.disconnect()
98-
99-
// Call also the disconnect method on setImmediate for projects not using the MutationObersver implementation of jsdom.
100-
// But using for example `@sheerun/mutationobserver-shim` which provokes infinite loop when being called immediately on `onDone` function
101-
setImmediate(() => observer.disconnect())
10298
}
10399

104100
if (error) {

0 commit comments

Comments
 (0)