()
| 14 | import {getConfig, configure} from './config' |
| 15 | |
| 16 | function jestFakeTimersAreEnabled() { |
| 17 | /* istanbul ignore else */ |
| 18 | if (typeof jest !== 'undefined' && jest !== null) { |
| 19 | return ( |
| 20 | // legacy timers |
| 21 | setTimeout._isMockFunction === true || // modern timers |
| 22 | // eslint-disable-next-line prefer-object-has-own -- No Object.hasOwn in all target environments we support. |
| 23 | Object.prototype.hasOwnProperty.call(setTimeout, 'clock') |
| 24 | ) |
| 25 | } // istanbul ignore next |
| 26 | |
| 27 | return false |
| 28 | } |
| 29 | |
| 30 | configureDTL({ |
| 31 | unstable_advanceTimersWrapper: cb => { |
no outgoing calls
no test coverage detected
searching dependent graphs…