From a43bb162a26d99757101864324945e051044952d Mon Sep 17 00:00:00 2001 From: Alex Reardon Date: Wed, 4 Oct 2023 10:14:16 +1100 Subject: [PATCH] updating sinon integration test --- .../src/__tests__/sinon-integration.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts b/packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts index 2d465699e6b3..8e06e211c968 100644 --- a/packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts +++ b/packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts @@ -17,6 +17,7 @@ const mockWithGlobal = { install: mockInstall, timers: { Date: jest.fn(), + cancelAnimationFrame: jest.fn(), clearImmediate: jest.fn(), clearInterval: jest.fn(), clearTimeout: jest.fn(), @@ -24,6 +25,7 @@ const mockWithGlobal = { nextTick: jest.fn(), performance: jest.fn(), queueMicrotask: jest.fn(), + requestAnimationFrame: jest.fn(), setImmediate: jest.fn(), setInterval: jest.fn(), setTimeout: jest.fn(), @@ -57,6 +59,7 @@ describe('`@sinonjs/fake-timers` integration', () => { shouldClearNativeTimers: true, toFake: [ 'Date', + 'cancelAnimationFrame', 'clearImmediate', 'clearInterval', 'clearTimeout', @@ -64,6 +67,7 @@ describe('`@sinonjs/fake-timers` integration', () => { 'nextTick', 'performance', 'queueMicrotask', + 'requestAnimationFrame', 'setImmediate', 'setInterval', 'setTimeout', @@ -93,12 +97,14 @@ describe('`@sinonjs/fake-timers` integration', () => { shouldAdvanceTime: true, shouldClearNativeTimers: true, toFake: [ + 'cancelAnimationFrame', 'clearImmediate', 'clearInterval', 'clearTimeout', 'hrtime', 'performance', 'queueMicrotask', + 'requestAnimationFrame', 'setImmediate', 'setInterval', 'setTimeout', @@ -126,12 +132,14 @@ describe('`@sinonjs/fake-timers` integration', () => { shouldAdvanceTime: true, shouldClearNativeTimers: true, toFake: [ + 'cancelAnimationFrame', 'clearImmediate', 'clearInterval', 'clearTimeout', 'hrtime', 'nextTick', 'performance', + 'requestAnimationFrame', 'setImmediate', 'setInterval', 'setTimeout', @@ -166,12 +174,14 @@ describe('`@sinonjs/fake-timers` integration', () => { shouldClearNativeTimers: true, toFake: [ 'Date', + 'cancelAnimationFrame', 'clearImmediate', 'clearInterval', 'clearTimeout', 'nextTick', 'performance', 'queueMicrotask', + 'requestAnimationFrame', 'setImmediate', 'setInterval', 'setTimeout',