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 a845e04 commit 44f33aeCopy full SHA for 44f33ae
src/helpers.js
@@ -5,7 +5,8 @@ function jestFakeTimersAreEnabled() {
5
// legacy timers
6
setTimeout._isMockFunction === true ||
7
// modern timers
8
- Object.hasOwn(setTimeout, 'clock')
+ // eslint-disable-next-line prefer-object-has-own
9
+ Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
10
)
11
}
12
// istanbul ignore next
0 commit comments