diff --git a/packages/utils/test/timer.test.js b/packages/utils/test/timer.test.js index 2a89335e8e..fb59344dce 100644 --- a/packages/utils/test/timer.test.js +++ b/packages/utils/test/timer.test.js @@ -94,7 +94,7 @@ describe('util: timer', () => { process.hrtime = hrtime }) - if (BigInt) { + if (typeof BigInt !== 'undefined') { test('should calculate duration with bigint hrtime', () => { const timer = new Timer() const hrtime = process.hrtime