Skip to content

Commit

Permalink
TODO: reword+fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 22, 2023
1 parent c534bc1 commit 471f2de
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/pure.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ import act, {
} from './act-compat'
import {fireEvent} from './fire-event'

function jestFakeTimersAreEnabled() {
/* istanbul ignore else */
if (typeof jest !== 'undefined' && jest !== null) {
return (
// legacy timers
setTimeout._isMockFunction === true || // modern timers
// eslint-disable-next-line prefer-object-has-own -- No Object.hasOwn in all target environments we support.
Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
)
} // istanbul ignore next

return false
}

configureDTL({
unstable_advanceTimersWrapper: cb => {
return act(cb)
Expand Down

0 comments on commit 471f2de

Please sign in to comment.