diff --git a/test/core/test/timers.test.ts b/test/core/test/timers.test.ts index 24f2cc16c365..0ea12c00c635 100644 --- a/test/core/test/timers.test.ts +++ b/test/core/test/timers.test.ts @@ -176,7 +176,7 @@ describe('FakeTimers', () => { setTimeout, } - const timers = new FakeTimers({ global, maxLoops: 100 }) + const timers = new FakeTimers({ global, config: { loopLimit: 100 } }) timers.useFakeTimers() @@ -306,7 +306,7 @@ describe('FakeTimers', () => { it('throws before allowing infinite recursion', () => { const global = { Date: FakeDate, clearTimeout, process, setTimeout } - const timers = new FakeTimers({ global, maxLoops: 100 }) + const timers = new FakeTimers({ global, config: { loopLimit: 100 } }) timers.useFakeTimers() global.setTimeout(function infinitelyRecursingCallback() {