We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c534bc1 commit 471f2deCopy full SHA for 471f2de
src/pure.js
@@ -12,20 +12,6 @@ import act, {
12
} from './act-compat'
13
import {fireEvent} from './fire-event'
14
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
29
configureDTL({
30
unstable_advanceTimersWrapper: cb => {
31
return act(cb)
0 commit comments