Skip to content

Commit 014ed78

Browse files
authored
Update src/helpers.js
1 parent 2781ebc commit 014ed78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ function runWithJestRealTimers(callback) {
2222
setTimeout,
2323
}
2424

25+
// For more on why we have the check here,
26+
// checkout https://github.com/testing-library/dom-testing-library/issues/914
2527
if (typeof setImmediate === 'function') {
2628
timerAPI.setImmediate = setImmediate
2729
}

0 commit comments

Comments
 (0)