Skip to content

Commit 471f2de

Browse files
committed
TODO: reword+fixup
1 parent c534bc1 commit 471f2de

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/pure.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ import act, {
1212
} from './act-compat'
1313
import {fireEvent} from './fire-event'
1414

15-
function jestFakeTimersAreEnabled() {
16-
/* istanbul ignore else */
17-
if (typeof jest !== 'undefined' && jest !== null) {
18-
return (
19-
// legacy timers
20-
setTimeout._isMockFunction === true || // modern timers
21-
// eslint-disable-next-line prefer-object-has-own -- No Object.hasOwn in all target environments we support.
22-
Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
23-
)
24-
} // istanbul ignore next
25-
26-
return false
27-
}
28-
2915
configureDTL({
3016
unstable_advanceTimersWrapper: cb => {
3117
return act(cb)

0 commit comments

Comments
 (0)