From b022cae3092fa98a55dbf73f6ca99e01623439d0 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 7 Jun 2024 16:14:00 +0200 Subject: [PATCH] test: fix clock test which broke JSON reporter --- tests/library/clock.spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/library/clock.spec.ts b/tests/library/clock.spec.ts index cf27d2744b..47a99c68ba 100644 --- a/tests/library/clock.spec.ts +++ b/tests/library/clock.spec.ts @@ -1734,7 +1734,6 @@ it.describe('stubTimers', () => { }); it('decide on Date.now support at call-time when supported', async ({ install }) => { - (Date.now as any) = () => {}; install({ now: 0 }); expect(Date.now).toEqual(expect.any(Function)); });