Skip to content

Commit 80a6af8

Browse files
ph-fritscheeps1lon
andauthored
Update src/helpers.js
Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 87d2195 commit 80a6af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function runWithRealTimers(callback) {
1313

1414
function hasJestTimers() {
1515
return (
16-
jest !== undefined &&
16+
typeof jest !== 'undefined' &&
1717
jest !== null &&
1818
typeof jest.useRealTimers === 'function'
1919
)

0 commit comments

Comments
 (0)